From eea6adc6f18a412f89cc68a1498caeffb6ea385b Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Thu, 27 Aug 2020 17:22:04 +0200 Subject: [PATCH] Fix #97 --- FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs b/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs index 71befc7..e0262d4 100644 --- a/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs +++ b/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs @@ -64,6 +64,7 @@ void OnCancelEvent(object sender, EventArgs args) errorCode = t.Result; cancellationTokenSource.Cancel(); }), _ffMpegArguments.During(cancellationTokenSource.Token)); + _ffMpegArguments.Post(); } catch (Exception e) { @@ -72,7 +73,6 @@ void OnCancelEvent(object sender, EventArgs args) finally { CancelEvent -= OnCancelEvent; - _ffMpegArguments.Post(); } return HandleCompletion(throwOnError, errorCode, instance.ErrorData);