Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
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 4316690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/decoderbase.cpp
Expand Up @@ -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.
Expand All @@ -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,
Expand Down

0 comments on commit 4316690

Please sign in to comment.