Ticket #5101: libs_libmythtv_decoderbase.cpp-remove-deadcode.patch

File libs_libmythtv_decoderbase.cpp-remove-deadcode.patch, 712 bytes (added by Erik Hovland <erik@…>, 18 years ago)

remove unneeded conditional

  • libs/libmythtv/decoderbase.cpp

    selTrack cannot be less then zero at the point of this patch. So the conditional is
    
    From: Erik Hovland <erik@hovland.org>
    
    not helpful
    ---
    
     libs/libmythtv/decoderbase.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmythtv/decoderbase.cpp b/libs/libmythtv/decoderbase.cpp
    index 9b3c78f..c067013 100644
    a b int DecoderBase::AutoSelectTrack(uint type)  
    934934    }
    935935
    936936    int oldTrack = currentTrack[type];
    937     currentTrack[type] = (selTrack < 0) ? -1 : selTrack;
     937    currentTrack[type] = selTrack;
    938938    StreamInfo tmp = tracks[type][currentTrack[type]];
    939939    selectedTrack[type] = tmp;
    940940