mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
Fix #113: read buffer before waiting
This commit is contained in:
@@ -148,9 +148,9 @@ namespace QuickLook.Plugin.ImageViewer.Exiv2
|
|||||||
p.StartInfo.Arguments = arg;
|
p.StartInfo.Arguments = arg;
|
||||||
p.StartInfo.StandardOutputEncoding = Encoding.UTF8;
|
p.StartInfo.StandardOutputEncoding = Encoding.UTF8;
|
||||||
p.Start();
|
p.Start();
|
||||||
p.WaitForExit();
|
|
||||||
|
|
||||||
result = p.StandardOutput.ReadToEnd();
|
result = p.StandardOutput.ReadToEnd();
|
||||||
|
p.WaitForExit(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.IsNullOrWhiteSpace(result)
|
return string.IsNullOrWhiteSpace(result)
|
||||||
|
@@ -51,9 +51,10 @@ namespace QuickLook.Plugin.VideoViewer.FFmpeg
|
|||||||
p.StartInfo.Arguments = $"-v quiet -print_format xml -show_streams -show_format \"{media}\"";
|
p.StartInfo.Arguments = $"-v quiet -print_format xml -show_streams -show_format \"{media}\"";
|
||||||
p.StartInfo.StandardOutputEncoding = Encoding.UTF8;
|
p.StartInfo.StandardOutputEncoding = Encoding.UTF8;
|
||||||
p.Start();
|
p.Start();
|
||||||
p.WaitForExit();
|
|
||||||
|
|
||||||
result = p.StandardOutput.ReadToEnd();
|
result = p.StandardOutput.ReadToEnd();
|
||||||
|
p.WaitForExit(1000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(result))
|
if (string.IsNullOrWhiteSpace(result))
|
||||||
|
Reference in New Issue
Block a user