소스 검색

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
                     {