diff options
| author | Tavares André <tavares_and@hotmail.com> | 2015-06-30 20:26:42 +0200 |
|---|---|---|
| committer | Tavares André <tavares_and@hotmail.com> | 2015-06-30 20:26:42 +0200 |
| commit | 27d6135493c778bddee6ad6e044ed167c6449d7d (patch) | |
| tree | 4cf323758d3e9caf115c9627f8e6da7dd78c543f /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 1e07dbec63bced51857e67b00941b91ca86a7f77 (diff) | |
| parent | 86571a629764be30e6d2e671db9e87c42a72a7f4 (diff) | |
Merge branch 'dev' of https://github.com/MediaBrowser/MediaBrowser into dev
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 71ef689a7..41d785a34 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -772,6 +772,11 @@ namespace MediaBrowser.Api.Playback ? null : audioStream.Channels; + if (inputChannels <= 0) + { + inputChannels = null; + } + var codec = outputAudioCodec ?? string.Empty; if (codec.IndexOf("wma", StringComparison.OrdinalIgnoreCase) != -1) |
