diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-15 00:05:19 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-15 00:05:19 -0500 |
| commit | c07d958df9589120251dc6c3f0aa3a083d87fc27 (patch) | |
| tree | 1635317e53d96f23e172cf0b7e5f8c9ce4208668 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | b93641e503b97c2f269052c5117dd6a5f998b196 (diff) | |
use async 1000 for live tv
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 9e2ce066f..98004dfcb 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -365,12 +365,13 @@ namespace MediaBrowser.Api.Playback } } - return string.Format("-af \"{0}aresample={1}async=1{2}{3}\"", + return string.Format("-af \"{0}aresample={1}async={4}{2}{3}\"", adelay, audioSampleRate, volParam, - pts); + pts, + state.AudioSync.ToString(UsCulture)); } /// <summary> @@ -1044,6 +1045,7 @@ namespace MediaBrowser.Api.Playback //state.RunTimeTicks = recording.RunTimeTicks; state.SendInputOverStandardInput = recording.RecordingInfo.Status == RecordingStatus.InProgress; + state.AudioSync = 1000; } else if (item is LiveTvChannel) { @@ -1069,6 +1071,7 @@ namespace MediaBrowser.Api.Playback } state.SendInputOverStandardInput = true; + state.AudioSync = 1000; } else { |
