diff --git a/FFMpegCore/FFMPEG/FFProbe.cs b/FFMpegCore/FFMPEG/FFProbe.cs index a9033c4..3030344 100644 --- a/FFMpegCore/FFMPEG/FFProbe.cs +++ b/FFMpegCore/FFMPEG/FFProbe.cs @@ -99,6 +99,7 @@ public VideoInfo ParseVideoInfo(System.IO.Stream stream) if (exitCode != 0) throw new FFMpegException(FFMpegExceptionType.Process, "FFProbe process returned exit status " + exitCode); + var output = string.Join("", instance.OutputData); return ParseVideoInfoInternal(info, output); } @@ -132,6 +133,9 @@ public async Task ParseVideoInfoAsync(System.IO.Stream stream) } var exitCode = await task; + if (exitCode != 0) + throw new FFMpegException(FFMpegExceptionType.Process, "FFProbe process returned exit status " + exitCode); + var output = string.Join("", instance.OutputData); return ParseVideoInfoInternal(info, output); }