Ticket #5083: libs_libmythtv_avformatdecoder.cpp-using_passthru-always-false.patch

File libs_libmythtv_avformatdecoder.cpp-using_passthru-always-false.patch, 766 bytes (added by Erik Hovland <erik@…>, 18 years ago)

removes unnecessary check of using_passthru

  • libs/libmythtv/avformatdecoder.cpp

    A condition can't be met because using_passthru is going to be false no
    
    From: Erik Hovland <erik@hovland.org>
    
    matter what by the time the code is reached.
    ---
    
     libs/libmythtv/avformatdecoder.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmythtv/avformatdecoder.cpp b/libs/libmythtv/avformatdecoder.cpp
    index 4f325b0..bcd3cd6 100644
    a b bool AvFormatDecoder::SetupAudioStream(void)  
    40474047                             audioIn.do_passthru);
    40484048
    40494049    // allow the audio stuff to reencode
    4050     GetNVP()->SetAudioCodec(using_passthru?codec_ctx:NULL);
     4050    GetNVP()->SetAudioCodec(NULL);
    40514051    GetNVP()->ReinitAudio();
    40524052
    40534053    return true;