diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/exiv2/Meta.cs b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/exiv2/Meta.cs index f03e006..93e4d27 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/exiv2/Meta.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/exiv2/Meta.cs @@ -148,9 +148,9 @@ namespace QuickLook.Plugin.ImageViewer.Exiv2 p.StartInfo.Arguments = arg; p.StartInfo.StandardOutputEncoding = Encoding.UTF8; p.Start(); - p.WaitForExit(); result = p.StandardOutput.ReadToEnd(); + p.WaitForExit(1000); } return string.IsNullOrWhiteSpace(result) diff --git a/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ffmpeg/FFprobe.cs b/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ffmpeg/FFprobe.cs index e5f57a3..ea11c25 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ffmpeg/FFprobe.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ffmpeg/FFprobe.cs @@ -51,9 +51,10 @@ namespace QuickLook.Plugin.VideoViewer.FFmpeg p.StartInfo.Arguments = $"-v quiet -print_format xml -show_streams -show_format \"{media}\""; p.StartInfo.StandardOutputEncoding = Encoding.UTF8; p.Start(); - p.WaitForExit(); result = p.StandardOutput.ReadToEnd(); + p.WaitForExit(1000); + } if (string.IsNullOrWhiteSpace(result))