mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
Run post after ffmpeg has completed
This commit is contained in:
parent
203da6300b
commit
418cb943ff
1 changed files with 4 additions and 4 deletions
|
@ -65,8 +65,8 @@ void OnCancelEvent(object sender, EventArgs args)
|
||||||
{
|
{
|
||||||
errorCode = t.Result;
|
errorCode = t.Result;
|
||||||
cancellationTokenSource.Cancel();
|
cancellationTokenSource.Cancel();
|
||||||
// _ffMpegArguments.Post();
|
_ffMpegArguments.Post();
|
||||||
}), _ffMpegArguments.During(cancellationTokenSource.Token).ContinueWith(t => _ffMpegArguments.Post()));
|
}), _ffMpegArguments.During(cancellationTokenSource.Token));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -111,8 +111,8 @@ await Task.WhenAll(instance.FinishedRunning().ContinueWith(t =>
|
||||||
{
|
{
|
||||||
errorCode = t.Result;
|
errorCode = t.Result;
|
||||||
cancellationTokenSource.Cancel();
|
cancellationTokenSource.Cancel();
|
||||||
// _ffMpegArguments.Post();
|
_ffMpegArguments.Post();
|
||||||
}), _ffMpegArguments.During(cancellationTokenSource.Token).ContinueWith(t => _ffMpegArguments.Post())).ConfigureAwait(false);
|
}), _ffMpegArguments.During(cancellationTokenSource.Token)).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue