Permalink
Browse files

Merge pull request #3649 from FernetMenta/stream

dvdplayer: fix failed to get stream message, lookup streams the same way...
  • Loading branch information...
FernetMenta committed Jan 12, 2014
2 parents 756598b + 46a4f92 commit 4398243fb8336ae8753a128fa84fa5cb700d92b0
Showing with 6 additions and 0 deletions.
  1. +3 −0 xbmc/cores/dvdplayer/DVDPlayer.cpp
  2. +3 −0 xbmc/cores/omxplayer/OMXPlayer.cpp
@@ -455,6 +455,9 @@ void CSelectionStreams::Update(CDVDInputStream* input, CDVDDemux* demuxer)
for(int i=0;i<count;i++)
{
CDemuxStream* stream = demuxer->GetStream(i);
+ /* skip streams with no type */
+ if (stream->type == STREAM_NONE)
+ continue;
/* make sure stream is marked with right source */
stream->source = source;
@@ -495,6 +495,9 @@ void COMXSelectionStreams::Update(CDVDInputStream* input, CDVDDemux* demuxer)
for(int i=0;i<count;i++)
{
CDemuxStream* stream = demuxer->GetStream(i);
+ /* skip streams with no type */
+ if (stream->type == STREAM_NONE)
+ continue;
/* make sure stream is marked with right source */
stream->source = source;

0 comments on commit 4398243

Please sign in to comment.