Ticket #8669: queueInputTimerFix.patch
| File queueInputTimerFix.patch, 3.2 KB (added by , 15 years ago) |
|---|
-
libs/libmythtv/tv_play.h
904 904 static const uint kLCDTimeout; 905 905 /// Timeout for browse mode exit in msec 906 906 static const uint kBrowseTimeout; 907 /// Timeout for queued input in msec 908 static const uind kQueuedInputTimeout; 907 909 /// Seek key repeat timeout in msec 908 910 static const uint kKeyRepeatTimeout; 909 911 /// How long to wait before applying all previous channel keypresses in msec -
libs/libmythtv/tv_play.cpp
104 104 const uint TV::kInputModeTimeout = 5000; 105 105 const uint TV::kLCDTimeout = 1000; 106 106 const uint TV::kBrowseTimeout = 30000; 107 const uint TV::kQueuedInputTimeout = 10000; 107 108 const uint TV::kKeyRepeatTimeout = 300; 108 109 const uint TV::kPrevChanTimeout = 750; 109 110 const uint TV::kSleepTimerDialogTimeout = 45000; … … 6451 6452 queuedInput = queuedInput.append(key).right(kInputKeysMax); 6452 6453 queuedChanNum = queuedChanNum.append(key).right(kInputKeysMax); 6453 6454 if (!queueInputTimerId) 6454 queueInputTimerId = StartTimer( 10, __LINE__);6455 queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__); 6455 6456 } 6456 6457 6457 6458 bool commitSmart = false; … … 6508 6509 QMutexLocker locker(&timerIdLock); 6509 6510 queuedChanNum = chan; 6510 6511 if (!queueInputTimerId) 6511 queueInputTimerId = StartTimer( 10, __LINE__);6512 queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__); 6512 6513 } 6513 6514 } 6514 6515 … … 6555 6556 inputStr = queuedChanNum; 6556 6557 inputStr.detach(); 6557 6558 if (!queueInputTimerId) 6558 queueInputTimerId = StartTimer( 10, __LINE__);6559 queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__); 6559 6560 6560 6561 return !is_not_complete; 6561 6562 } … … 6803 6804 queuedChanNum = channum; queuedChanNum.detach(); 6804 6805 queuedChanID = chanid; 6805 6806 if (!queueInputTimerId) 6806 queueInputTimerId = StartTimer( 10, __LINE__);6807 queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__); 6807 6808 break; 6808 6809 } 6809 6810 } … … 6844 6845 queuedChanNum = prev_channum; queuedChanNum.detach(); 6845 6846 queuedChanID = 0; 6846 6847 if (!queueInputTimerId) 6847 queueInputTimerId = StartTimer( 10, __LINE__);6848 queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__); 6848 6849 } 6849 6850 6850 6851 if (immediate_change) … … 9858 9859 queuedChanNum = new_channum; queuedChanNum.detach(); 9859 9860 queuedChanID = 0; 9860 9861 if (!queueInputTimerId) 9861 queueInputTimerId = StartTimer( 10, __LINE__);9862 queueInputTimerId = StartTimer(kQueuedInputTimeout, __LINE__); 9862 9863 } 9863 9864 9864 9865 // Turn off OSD Channel Num so the channel changes right away
