Ticket #5119: 5119-v1.patch

File 5119-v1.patch, 997 bytes (added by danielk, 12 years ago)

Better Fix.

  • libs/libmythtv/firewirechannel.cpp

     
    3636#ifdef USING_OSX_FIREWIRE
    3737    device = new DarwinFirewireDevice(guid, subunitid, fw_opts.speed);
    3838#endif // USING_OSX_FIREWIRE
    39 
    40     InitializeInputs();
    4139}
    4240
    4341bool FirewireChannel::SetChannelByString(const QString &channum)
     
    121119{
    122120    VERBOSE(VB_CHANNEL, LOC + "Open()");
    123121
    124     if (inputs.find(currentInputID) == inputs.end())
    125         return false;
    126 
    127122    if (!device)
    128123        return false;
    129124
    130125    if (isopen)
    131126        return true;
    132127
     128    if (!InitializeInputs())
     129        return false;
     130
     131    if (inputs.find(currentInputID) == inputs.end())
     132        return false;
     133
    133134    InputMap::const_iterator it = inputs.find(currentInputID);
    134135    if (!FirewireDevice::IsSTBSupported(fw_opts.model) &&
    135136        (*it)->externalChanger.isEmpty())