Skip to content

Commit

Permalink
[omxplayer] fixed b72ed07 thx FernetMenta for pointing it out
Browse files Browse the repository at this point in the history
  • Loading branch information
huceke committed Oct 11, 2012
1 parent d7916b5 commit 534c43e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions xbmc/cores/omxplayer/OMXPlayer.cpp
Expand Up @@ -771,15 +771,6 @@ bool COMXPlayer::ReadPacket(DemuxPacket*& packet, CDemuxStream*& stream)

if(packet)
{
// stream changed, update and open defaults
if(packet->iStreamId == DMX_SPECIALID_STREAMCHANGE)
{
m_SelectionStreams.Clear(STREAM_NONE, STREAM_SOURCE_DEMUX);
m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
OpenDefaultStreams();
return true;
}

UpdateCorrection(packet, m_offset_pts);
if(packet->iStreamId < 0)
return true;
Expand All @@ -805,6 +796,15 @@ bool COMXPlayer::ReadPacket(DemuxPacket*& packet, CDemuxStream*& stream)

if(packet)
{
// stream changed, update and open defaults
if(packet->iStreamId == DMX_SPECIALID_STREAMCHANGE)
{
m_SelectionStreams.Clear(STREAM_NONE, STREAM_SOURCE_DEMUX);
m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
OpenDefaultStreams();
return true;
}

UpdateCorrection(packet, m_offset_pts);
// this groupId stuff is getting a bit messy, need to find a better way
// currently it is used to determine if a menu overlay is associated with a picture
Expand Down

0 comments on commit 534c43e

Please sign in to comment.