diff options
| author | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-21 11:40:54 -0700 |
|---|---|---|
| committer | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-21 11:40:54 -0700 |
| commit | cf5e89d045c616db8a4e83beae0a38c94fcb3e42 (patch) | |
| tree | 92219a77c6d52c94758bea15ec4fdc5017453c45 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 6239bef199795cabdf53aa343e66c8e8a40305ff (diff) | |
| parent | 9e82fc09ca19f9820a0871bb2d8213289d53ee4f (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 3993866cf..e1f4799f1 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -1358,6 +1358,8 @@ namespace MediaBrowser.Api.Playback state.ReadInputAtNativeFramerate = recording.RecordingInfo.Status == RecordingStatus.InProgress; state.AudioSync = "1000"; state.DeInterlace = true; + state.InputVideoSync = "-1"; + state.InputAudioSync = "1"; } else if (item is LiveTvChannel) { @@ -1387,6 +1389,8 @@ namespace MediaBrowser.Api.Playback state.ReadInputAtNativeFramerate = true; state.AudioSync = "1000"; state.DeInterlace = true; + state.InputVideoSync = "-1"; + state.InputAudioSync = "1"; } else { @@ -1503,6 +1507,16 @@ namespace MediaBrowser.Api.Playback inputModifier += " -acodec " + state.InputAudioCodec; } + if (!string.IsNullOrEmpty(state.InputAudioSync)) + { + inputModifier += " -async " + state.InputAudioSync; + } + + if (!string.IsNullOrEmpty(state.InputVideoSync)) + { + inputModifier += " -vsync " + state.InputVideoSync; + } + if (state.ReadInputAtNativeFramerate) { inputModifier += " -re"; |
