mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
Fix #97
This commit is contained in:
parent
78919dcdcf
commit
eea6adc6f1
1 changed files with 1 additions and 1 deletions
|
@ -64,6 +64,7 @@ void OnCancelEvent(object sender, EventArgs args)
|
||||||
errorCode = t.Result;
|
errorCode = t.Result;
|
||||||
cancellationTokenSource.Cancel();
|
cancellationTokenSource.Cancel();
|
||||||
}), _ffMpegArguments.During(cancellationTokenSource.Token));
|
}), _ffMpegArguments.During(cancellationTokenSource.Token));
|
||||||
|
_ffMpegArguments.Post();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +73,6 @@ void OnCancelEvent(object sender, EventArgs args)
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
CancelEvent -= OnCancelEvent;
|
CancelEvent -= OnCancelEvent;
|
||||||
_ffMpegArguments.Post();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return HandleCompletion(throwOnError, errorCode, instance.ErrorData);
|
return HandleCompletion(throwOnError, errorCode, instance.ErrorData);
|
||||||
|
|
Loading…
Reference in a new issue