Dispose of ffmpeg if terminated
This commit is contained in:
parent
63b27f0292
commit
b101d8f8a4
@ -452,7 +452,10 @@ public static class FFmpegWrapper
|
|||||||
}
|
}
|
||||||
while (bytesRead > 0);
|
while (bytesRead > 0);
|
||||||
|
|
||||||
ffmpeg.WaitForExit(timeout);
|
if (ffmpeg.WaitForExit(timeout))
|
||||||
|
{
|
||||||
|
ffmpeg.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
var output = ms.ToArray();
|
var output = ms.ToArray();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user