Permalink
Browse files

Remove redundant check

The codes check for numStream being zero previously,
and return from the function if it is zero.

Fixes #11581
  • Loading branch information...
garybuhrmaster authored and dekarl committed Jun 9, 2013
1 parent bae0057 commit 431669005cd87124a199da013b59bf29a9bc58e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/decoderbase.cpp
@@ -1040,7 +1040,7 @@ int DecoderBase::AutoSelectTrack(uint type)
int selTrack = (1 == numStreams) ? 0 : -1;
if ((selTrack < 0) &&
wantedTrack[type].language>=-1 && numStreams)
wantedTrack[type].language>=-1)
{
LOG(VB_PLAYBACK, LOG_INFO, LOC + "Trying to reselect track");
// Try to reselect user selected track stream.
@@ -1060,7 +1060,7 @@ int DecoderBase::AutoSelectTrack(uint type)
}
}
if (selTrack < 0 && numStreams)
if (selTrack < 0)
{
// Select the best track. Primary attribute is to favor a
// forced track. Secondary attribute is language preference,

0 comments on commit 4316690

Please sign in to comment.