diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs b/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs index 81a28c9..0201176 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs @@ -452,7 +452,10 @@ public static class FFmpegWrapper } while (bytesRead > 0); - ffmpeg.WaitForExit(timeout); + if (ffmpeg.WaitForExit(timeout)) + { + ffmpeg.Dispose(); + } var output = ms.ToArray();