Run post after ffmpeg has completed

This commit is contained in:
Malte Rosenbjerg 2020-12-07 17:25:54 +01:00
parent 203da6300b
commit 418cb943ff

View file

@ -65,8 +65,8 @@ void OnCancelEvent(object sender, EventArgs args)
{
errorCode = t.Result;
cancellationTokenSource.Cancel();
// _ffMpegArguments.Post();
}), _ffMpegArguments.During(cancellationTokenSource.Token).ContinueWith(t => _ffMpegArguments.Post()));
_ffMpegArguments.Post();
}), _ffMpegArguments.During(cancellationTokenSource.Token));
}
catch (Exception e)
{
@ -111,8 +111,8 @@ await Task.WhenAll(instance.FinishedRunning().ContinueWith(t =>
{
errorCode = t.Result;
cancellationTokenSource.Cancel();
// _ffMpegArguments.Post();
}), _ffMpegArguments.During(cancellationTokenSource.Token).ContinueWith(t => _ffMpegArguments.Post())).ConfigureAwait(false);
_ffMpegArguments.Post();
}), _ffMpegArguments.During(cancellationTokenSource.Token)).ConfigureAwait(false);
}
catch (Exception e)
{