diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-21 00:52:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-21 00:52:28 -0400 |
| commit | 6ef57587133f3fbfee235bbd588c27e506fe92d8 (patch) | |
| tree | 88a32d70ef8c3a7671b903397da18456e00e4d21 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 74d1ffd67689c5203870dbdbfa21a0e4d79f6db1 (diff) | |
add support for input audio/video sync
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 3993866cf..624c3eb0e 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -1503,6 +1503,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"; |
