aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorartiume <siderite@gmail.com>2020-04-02 14:14:57 -0400
committerGitHub <noreply@github.com>2020-04-02 14:14:57 -0400
commitd10ae74b3827ff8dd8cff4cfa3c0330cf7c7ad3b (patch)
tree1e5ecd6d5d14c5aa310d48f426cb610ab57996e1
parent5a816f0b22cec12d193b19fcb9f21c7d085a3fbf (diff)
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.
-rw-r--r--MediaBrowser.Api/Playback/MediaInfoService.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/MediaBrowser.Api/Playback/MediaInfoService.cs b/MediaBrowser.Api/Playback/MediaInfoService.cs
index d74ec3ca6..040022a3d 100644
--- a/MediaBrowser.Api/Playback/MediaInfoService.cs
+++ b/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;