Permalink
Browse files

dvdplayer: reevaluate HasVideo/Audio after a stream change

  • Loading branch information...
1 parent 8f3fecd commit f9498832d2dd260a47051a88ae9d3e1e1b2f957e @FernetMenta committed Mar 18, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -788,6 +788,13 @@ bool CDVDPlayer::ReadPacket(DemuxPacket*& packet, CDemuxStream*& stream)
m_SelectionStreams.Clear(STREAM_NONE, STREAM_SOURCE_DEMUX);
m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
OpenDefaultStreams(false);
+
+ // reevaluate HasVideo/Audio, we may have switched from/to a radio channel
+ if(m_CurrentVideo.id < 0)
+ m_HasVideo = false;
+ if(m_CurrentAudio.id < 0)
+ m_HasAudio = false;
+
return true;
}

0 comments on commit f949883

Please sign in to comment.