Ticket #5119: libs_libmythtv_firewirechannel.cpp-check-return-of-Init.patch

File libs_libmythtv_firewirechannel.cpp-check-return-of-Init.patch, 869 bytes (added by Erik Hovland <erik@…>, 16 years ago)

check InitializeInputs?() and report if there is a failure

  • libs/libmythtv/firewirechannel.cpp

    Init returns something, it should be checked and reported.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythtv/firewirechannel.cpp |    6 +++++-
     1 files changed, 5 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmythtv/firewirechannel.cpp b/libs/libmythtv/firewirechannel.cpp
    index 6915b4c..60ec851 100644
    a b FirewireChannel::FirewireChannel(TVRec *parent, const QString &_videodevice, 
    3737    device = new DarwinFirewireDevice(guid, subunitid, fw_opts.speed);
    3838#endif // USING_OSX_FIREWIRE
    3939
    40     InitializeInputs();
     40    if (!InitializeInputs())
     41    {
     42        VERBOSE(VB_IMPORTANT, LOC_ERR + "FirewireChannel::Ctor : "
     43                "ChannelBase::InitializeInputs failed");
     44    }
    4145}
    4246
    4347bool FirewireChannel::SetChannelByString(const QString &channum)