mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
d0bca699be
commit
0d3f98a011
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