aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-30 14:49:19 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-30 14:49:19 -0400
commite5d026c4835408e9413daff3eadc208b1417d099 (patch)
treeef6ec5a898be190b53b8f9451c53eda0c6371bc7 /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent2aea48022513a2a9e41cde1271533b322b3e6146 (diff)
fixes #528 - Support podcasts in web client
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index b002d556b..79a5a2846 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -470,12 +470,15 @@ namespace MediaBrowser.Api.Playback
/// <returns>System.Nullable{System.Int32}.</returns>
protected int? GetNumAudioChannelsParam(StreamRequest request, MediaStream audioStream)
{
- if (audioStream.Channels > 2 && request.AudioCodec.HasValue)
+ if (audioStream != null)
{
- if (request.AudioCodec.Value == AudioCodecs.Wma)
+ if (audioStream.Channels > 2 && request.AudioCodec.HasValue)
{
- // wmav2 currently only supports two channel output
- return 2;
+ if (request.AudioCodec.Value == AudioCodecs.Wma)
+ {
+ // wmav2 currently only supports two channel output
+ return 2;
+ }
}
}