Permalink
Browse files

[pvr] fixed - also dispose an audio stream if the channel count chang…

…ed. fixes occasional missing audio
  • Loading branch information...
1 parent 4388d8e commit dd307930d39d92f145a01a16600cd00e01ec39be @opdenkamp opdenkamp committed Dec 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxPVRClient.cpp
@@ -348,7 +348,9 @@ void CDVDDemuxPVRClient::RequestStreams()
if (stm)
{
st = dynamic_cast<CDemuxStreamAudioPVRClient*>(stm);
- if (!st || (st->codec != (CodecID)props.stream[i].iCodecId))
+ if (!st
+ || (st->codec != (CodecID)props.stream[i].iCodecId)
+ || (st->iChannels != props.stream[i].iChannels))
DisposeStream(i);
}
if (!m_streams[i])

0 comments on commit dd30793

Please sign in to comment.