fixes #298 - 5.1 chan from bd info

This commit is contained in:
Luke Pulverenti 2013-05-25 09:06:40 -04:00
parent 8ee1874e8c
commit 7162566f56

View File

@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.BdInfo
/// <param name="audioStream">The audio stream.</param>
private void AddAudioStream(List<MediaStream> streams, TSAudioStream audioStream)
{
streams.Add(new MediaStream
var stream = new MediaStream
{
BitRate = Convert.ToInt32(audioStream.BitRate),
Codec = audioStream.CodecShortName,
@ -132,7 +132,14 @@ namespace MediaBrowser.Server.Implementations.BdInfo
SampleRate = audioStream.SampleRate,
Type = MediaStreamType.Audio,
Index = streams.Count
});
};
if (audioStream.LFE > 0)
{
stream.Channels = audioStream.ChannelCount + 1;
}
streams.Add(stream);
}
/// <summary>