Ticket #5308: idletimer-patch

File idletimer-patch, 965 bytes (added by huge at ax dot ru, 18 years ago)
Line 
1svn diff libs/libmythtv/tv_play.cpp
2Index: libs/libmythtv/tv_play.cpp
3===================================================================
4--- libs/libmythtv/tv_play.cpp (revision 17246)
5+++ libs/libmythtv/tv_play.cpp (working copy)
6@@ -2602,7 +2602,10 @@
7 VERBOSE(VB_IMPORTANT, LOC + "ProcessKeypress() ignoreKeys: "<<ignoreKeys);
8 #endif // DEBUG_ACTIONS
9
10- idleTimer.start();
11+ if (db_idle_timeout > 0)
12+ {
13+ idleTimer.start();
14+ }
15
16 bool was_doing_ff_rew = false;
17 bool redisplayBrowseInfo = false;
18@@ -2941,7 +2944,10 @@
19 if (result == 1)
20 {
21 idleDialogTimer.stop();
22- idleTimer.start();
23+ if (db_idle_timeout > 0)
24+ {
25+ idleTimer.start();
26+ }
27 }
28 else
29 {