Ticket #6719: channel-thread-v1.4a-deadlock-fix.patch

File channel-thread-v1.4a-deadlock-fix.patch, 559 bytes (added by Johnny Stenback <mythtv@…>, 12 years ago)

Fix a deadlock in the last patch when a livetv user prevents a scheduled recording from starting.

  • mythtv/libs/libmythtv/tv_rec.cpp

    diff -r 06d97fd5cd4b mythtv/libs/libmythtv/tv_rec.cpp
    a b TVRec::TVRec(int capturecardnum) 
    125125      cardid(capturecardnum), ispip(false),
    126126      // State variables
    127127      stateChangeLock(QMutex::Recursive),
     128      pendingRecLock(QMutex::Recursive),
    128129      internalState(kState_None), desiredNextState(kState_None),
    129130      changeState(false), pauseNotify(true),
    130131      stateFlags(0), lastTuningRequest(0),