浏览代码

update validation

Luke Pulverenti 9 年之前
父节点
当前提交
9a012e458c
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs

+ 3 - 4
MediaBrowser.MediaEncoding/Encoder/EncoderValidator.cs

@@ -134,13 +134,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
                 {
                     process.BeginErrorReadLine();
 
-                    using (var reader = new StreamReader(process.StandardOutput.BaseStream))
-                    {
-                        return reader.ReadToEnd();
-                    }
+                    return process.StandardOutput.ReadToEnd();
                 }
                 catch
                 {
+                    _logger.Info("Killing process {0} {1}", path, arguments);
+
                     // Hate having to do this
                     try
                     {