diff options
| author | Tim Hobbs <jesus.tesh@gmail.com> | 2014-04-09 16:58:14 -0700 |
|---|---|---|
| committer | Tim Hobbs <jesus.tesh@gmail.com> | 2014-04-09 16:58:14 -0700 |
| commit | 86b1ee0d313b0cb2052074342c0050424fd6da5b (patch) | |
| tree | 6297f775f4acc4efbd4d555d233c1983cb3d2db3 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | badbc5aa247cc704083d64e8cb0c424ab35a97a2 (diff) | |
| parent | f657e2981cb928720eb728790697c0653cb7344f (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 9787a7cd0..bb55b893a 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -919,7 +919,7 @@ namespace MediaBrowser.Api.Playback var commandLineLogMessage = process.StartInfo.FileName + " " + process.StartInfo.Arguments; Logger.Info(commandLineLogMessage); - var logFilePath = Path.Combine(ServerConfigurationManager.ApplicationPaths.LogDirectoryPath, "ffmpeg-" + Guid.NewGuid() + ".txt"); + var logFilePath = Path.Combine(ServerConfigurationManager.ApplicationPaths.LogDirectoryPath, "transcode-" + Guid.NewGuid() + ".txt"); Directory.CreateDirectory(Path.GetDirectoryName(logFilePath)); // FFMpeg writes debug/error info to stderr. This is useful when debugging so let's put it in the log directory. @@ -1485,17 +1485,14 @@ namespace MediaBrowser.Api.Playback ApplyDeviceProfileSettings(state); - if (videoRequest != null && state.VideoStream != null) + if (videoRequest != null) { - if (CanStreamCopyVideo(videoRequest, state.VideoStream, state.VideoType)) + if (state.VideoStream != null && CanStreamCopyVideo(videoRequest, state.VideoStream, state.VideoType)) { videoRequest.VideoCodec = "copy"; } - } - if (state.AudioStream != null) - { - //if (CanStreamCopyAudio(request, state.AudioStream)) + //if (state.AudioStream != null && CanStreamCopyAudio(request, state.AudioStream)) //{ // request.AudioCodec = "copy"; //} |
