summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-12-04 14:53:41 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2011-12-04 14:53:41 +0100
commit04e538072340d9ba7d0342fe59c755e4c8687775 (patch)
treec13fbc77db368e190c564131648e70cdb4805b26 /menu.c
parent989fa21a21bc68bdb8af3a4421169e65ebee356e (diff)
downloadvdr-04e538072340d9ba7d0342fe59c755e4c8687775.tar.gz
vdr-04e538072340d9ba7d0342fe59c755e4c8687775.tar.bz2
Replaced all calls to sleep() with cCondWait::SleepMs()
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index b1f083df..9167f47b 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 2.33 2011/12/03 15:11:42 kls Exp $
+ * $Id: menu.c 2.34 2011/12/04 14:52:38 kls Exp $
*/
#include "menu.h"
@@ -4208,7 +4208,7 @@ bool cRecordControl::GetEvent(void)
}
if (seconds == 0)
dsyslog("waiting for EPG info...");
- sleep(1);
+ cCondWait::SleepMs(1000);
}
dsyslog("no EPG info available");
return false;
@@ -4318,11 +4318,11 @@ bool cRecordControls::PauseLiveVideo(void)
Skins.Message(mtStatus, tr("Pausing live video..."));
cReplayControl::SetRecording(NULL, NULL); // make sure the new cRecordControl will set cReplayControl::LastReplayed()
if (Start(NULL, true)) {
- sleep(2); // allow recorded file to fill up enough to start replaying
+ cCondWait::SleepMs(2000); // allow recorded file to fill up enough to start replaying
cReplayControl *rc = new cReplayControl;
cControl::Launch(rc);
cControl::Attach();
- sleep(1); // allow device to replay some frames, so we have a picture
+ cCondWait::SleepMs(1000); // allow device to replay some frames, so we have a picture
Skins.Message(mtStatus, NULL);
rc->ProcessKey(kPause); // pause, allowing replay mode display
return true;