|
@@ -82,7 +82,7 @@ namespace fis.Win.Dev.Utilities.FFMPEG.Video
|
|
|
public void WriteFrame(BitmapFrame frame)
|
|
|
{
|
|
|
var exportManager = AppManager.Get<IFileExporterManager>();
|
|
|
- if (!exportManager.IsCancelled)
|
|
|
+ if (exportManager.IsCancelled)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
@@ -96,14 +96,13 @@ namespace fis.Win.Dev.Utilities.FFMPEG.Video
|
|
|
Task.Run(() =>
|
|
|
{
|
|
|
try
|
|
|
- {
|
|
|
- var exportManager = AppManager.Get<IFileExporterManager>();
|
|
|
- if (!exportManager.IsCancelled)
|
|
|
+ {
|
|
|
+ if (exportManager.IsCancelled)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
_ffmpeg.StandardInput.BaseStream.Write(frame.Data, 0, frame.Data.Length);
|
|
|
- if (!exportManager.IsCancelled)
|
|
|
+ if (exportManager.IsCancelled)
|
|
|
{
|
|
|
return;
|
|
|
}
|