Ticket #8669: queueInputTimerFix.patch

File queueInputTimerFix.patch, 3.2 KB (added by ijc@…, 15 years ago)

Increase queued input timeout to 10s

  • libs/libmythtv/tv_play.h

     
    904904    static const uint kLCDTimeout;
    905905    /// Timeout for browse mode exit in msec
    906906    static const uint kBrowseTimeout;
     907    /// Timeout for queued input in msec
     908    static const uind kQueuedInputTimeout;
    907909    /// Seek key repeat timeout in msec
    908910    static const uint kKeyRepeatTimeout;
    909911    /// How long to wait before applying all previous channel keypresses in msec
  • libs/libmythtv/tv_play.cpp

     
    104104const uint TV::kInputModeTimeout             = 5000;
    105105const uint TV::kLCDTimeout                   = 1000;
    106106const uint TV::kBrowseTimeout                = 30000;
     107const uint TV::kQueuedInputTimeout           = 10000;
    107108const uint TV::kKeyRepeatTimeout             = 300;
    108109const uint TV::kPrevChanTimeout              = 750;
    109110const uint TV::kSleepTimerDialogTimeout      = 45000;
     
    64516452        queuedInput   = queuedInput.append(key).right(kInputKeysMax);
    64526453        queuedChanNum = queuedChanNum.append(key).right(kInputKeysMax);
    64536454        if (!queueInputTimerId)
    6454             queueInputTimerId = StartTimer(10, __LINE__);
     6455            queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__);
    64556456    }
    64566457
    64576458    bool commitSmart = false;
     
    65086509            QMutexLocker locker(&timerIdLock);
    65096510            queuedChanNum = chan;
    65106511            if (!queueInputTimerId)
    6511                 queueInputTimerId = StartTimer(10, __LINE__);
     6512                queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__);
    65126513        }
    65136514    }
    65146515
     
    65556556    inputStr = queuedChanNum;
    65566557    inputStr.detach();
    65576558    if (!queueInputTimerId)
    6558         queueInputTimerId = StartTimer(10, __LINE__);
     6559        queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__);
    65596560
    65606561    return !is_not_complete;
    65616562}
     
    68036804            queuedChanNum = channum; queuedChanNum.detach();
    68046805            queuedChanID  = chanid;
    68056806            if (!queueInputTimerId)
    6806                 queueInputTimerId = StartTimer(10, __LINE__);
     6807                queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__);
    68076808            break;
    68086809        }
    68096810    }
     
    68446845        queuedChanNum = prev_channum; queuedChanNum.detach();
    68456846        queuedChanID  = 0;
    68466847        if (!queueInputTimerId)
    6847             queueInputTimerId = StartTimer(10, __LINE__);
     6848            queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__);
    68486849    }
    68496850
    68506851    if (immediate_change)
     
    98589859                        queuedChanNum = new_channum; queuedChanNum.detach();
    98599860                        queuedChanID  = 0;
    98609861                        if (!queueInputTimerId)
    9861                             queueInputTimerId = StartTimer(10, __LINE__);
     9862                            queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__);
    98629863                    }
    98639864
    98649865                    // Turn off OSD Channel Num so the channel changes right away