Skip to content

Commit

Permalink
VideoPlayer: update selectionstreams when stream parameters changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Jul 10, 2016
1 parent e68ae5d commit 725f4b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/cores/VideoPlayer/VideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,11 @@ void CVideoPlayer::CheckStreamChanges(CCurrentStream& current, CDemuxStream* str
/* if they have, reopen stream */

if (current.hint != CDVDStreamInfo(*stream, true))
OpenStream(current, stream->demuxerId, stream->uniqueId , stream->source );
{
m_SelectionStreams.Clear(STREAM_NONE, STREAM_SOURCE_DEMUX);
m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
OpenDefaultStreams(false);
}

current.stream = (void*)stream;
current.changes = stream->changes;
Expand Down

0 comments on commit 725f4b8

Please sign in to comment.