Ticket #10897: firewire_channel_change_fix.patch

File firewire_channel_change_fix.patch, 918 bytes (added by kpl388@…, 12 years ago)
  • mythtv/libs/libmythtv/firewirerecorder.cpp

    commit d4ea244a4e13f3907a0ef8916ff96ee49dcb4e37
    Author: Kyle <klillis@gmail.com>
    Date:   Tue Jul 24 08:19:14 2012 -0400
    
        Fixed bug in firewirerecorder.cpp PauseAndWait function that caused backend to
        crash after consecutive channel changes in livetv. Paused flag would never get
        set. So listeners were continuously added.
    
    diff --git a/mythtv/libs/libmythtv/firewirerecorder.cpp b/mythtv/libs/libmythtv/firewirerecorder.cpp
    index 9caa28e..aeb9830 100644
    a b bool FirewireRecorder::PauseAndWait(int timeout) 
    210210    {
    211211        LOG(VB_RECORD, LOG_INFO, LOC +
    212212            QString("PauseAndWait(%1) -- unpause").arg(timeout));
    213         StartStreaming();
    214         unpauseWait.wakeAll();
     213        StartStreaming();         
     214        paused = false;
     215        unpauseWait.wakeAll();
    215216    }
    216217
    217218    return IsPaused(true);