diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-12-04 14:53:41 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-12-04 14:53:41 +0100 |
commit | 04e538072340d9ba7d0342fe59c755e4c8687775 (patch) | |
tree | c13fbc77db368e190c564131648e70cdb4805b26 /menu.c | |
parent | 989fa21a21bc68bdb8af3a4421169e65ebee356e (diff) | |
download | vdr-04e538072340d9ba7d0342fe59c755e4c8687775.tar.gz vdr-04e538072340d9ba7d0342fe59c755e4c8687775.tar.bz2 |
Replaced all calls to sleep() with cCondWait::SleepMs()
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |