瀏覽代碼

Force Audio Transcoding for LiveTV Transcoding

Noticing some sync issues when transcoding livetv, the only thing I was able to do to fix it was to force the audio stream to be transcoded as well. This was how I originally wrote the code and we changed it during the review process. I am reverting it back to the original code.
artiume 5 年之前
父節點
當前提交
d10ae74b38
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      MediaBrowser.Api/Playback/MediaInfoService.cs

+ 1 - 4
MediaBrowser.Api/Playback/MediaInfoService.cs

@@ -520,10 +520,7 @@ namespace MediaBrowser.Api.Playback
                         streamInfo.StartPositionTicks = startTimeTicks;
                         mediaSource.TranscodingUrl = streamInfo.ToUrl("-", auth.Token).TrimStart('-');
                         mediaSource.TranscodingUrl += "&allowVideoStreamCopy=false";
-                        if (!allowAudioStreamCopy)
-                        {
-                            mediaSource.TranscodingUrl += "&allowAudioStreamCopy=false";
-                        }
+                        mediaSource.TranscodingUrl += "&allowAudioStreamCopy=false";
                         mediaSource.TranscodingContainer = streamInfo.Container;
                         mediaSource.TranscodingSubProtocol = streamInfo.SubProtocol;