mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Replaced all calls to sleep() with cCondWait::SleepMs()
This commit is contained in:
parent
989fa21a21
commit
04e5380723
@ -1119,6 +1119,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
|
|||||||
for making the Recordings menu display the length (in hours:minutes) of each recording
|
for making the Recordings menu display the length (in hours:minutes) of each recording
|
||||||
for fixing handling DVB subtitles and implementing decoding textual DVB subtitles
|
for fixing handling DVB subtitles and implementing decoding textual DVB subtitles
|
||||||
for adding file name and line number to LOG_ERROR_STR()
|
for adding file name and line number to LOG_ERROR_STR()
|
||||||
|
for replacing all calls to sleep() with cCondWait::SleepMs()
|
||||||
|
|
||||||
Ralf Klueber <ralf.klueber@vodafone.com>
|
Ralf Klueber <ralf.klueber@vodafone.com>
|
||||||
for reporting a bug in cutting a recording if there is only a single editing mark
|
for reporting a bug in cutting a recording if there is only a single editing mark
|
||||||
|
1
HISTORY
1
HISTORY
@ -6778,3 +6778,4 @@ Video Disk Recorder Revision History
|
|||||||
- Changed the default location for the LIRC socket to /var/run/lirc/lircd (thanks
|
- Changed the default location for the LIRC socket to /var/run/lirc/lircd (thanks
|
||||||
to Ville Skyttä).
|
to Ville Skyttä).
|
||||||
- Added file name and line number to LOG_ERROR_STR() (thanks to Rolf Ahrenberg).
|
- Added file name and line number to LOG_ERROR_STR() (thanks to Rolf Ahrenberg).
|
||||||
|
- Replaced all calls to sleep() with cCondWait::SleepMs() (thanks to Rolf Ahrenberg).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: interface.c 1.77 2008/02/10 15:49:15 kls Exp $
|
* $Id: interface.c 2.1 2011/12/04 14:52:38 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "interface.h"
|
#include "interface.h"
|
||||||
@ -79,7 +79,7 @@ bool cInterface::QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu)
|
|||||||
DisplayMenu->SetItem(tr("RC code detected!"), 4, false, false);
|
DisplayMenu->SetItem(tr("RC code detected!"), 4, false, false);
|
||||||
DisplayMenu->SetItem(tr("Do not press any key..."), 5, false, false);
|
DisplayMenu->SetItem(tr("Do not press any key..."), 5, false, false);
|
||||||
DisplayMenu->Flush();
|
DisplayMenu->Flush();
|
||||||
sleep(3);
|
cCondWait::SleepMs(3000);
|
||||||
DisplayMenu->SetItem("", 4, false, false);
|
DisplayMenu->SetItem("", 4, false, false);
|
||||||
DisplayMenu->SetItem("", 5, false, false);
|
DisplayMenu->SetItem("", 5, false, false);
|
||||||
|
|
||||||
|
8
menu.c
8
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "menu.h"
|
||||||
@ -4208,7 +4208,7 @@ bool cRecordControl::GetEvent(void)
|
|||||||
}
|
}
|
||||||
if (seconds == 0)
|
if (seconds == 0)
|
||||||
dsyslog("waiting for EPG info...");
|
dsyslog("waiting for EPG info...");
|
||||||
sleep(1);
|
cCondWait::SleepMs(1000);
|
||||||
}
|
}
|
||||||
dsyslog("no EPG info available");
|
dsyslog("no EPG info available");
|
||||||
return false;
|
return false;
|
||||||
@ -4318,11 +4318,11 @@ bool cRecordControls::PauseLiveVideo(void)
|
|||||||
Skins.Message(mtStatus, tr("Pausing live video..."));
|
Skins.Message(mtStatus, tr("Pausing live video..."));
|
||||||
cReplayControl::SetRecording(NULL, NULL); // make sure the new cRecordControl will set cReplayControl::LastReplayed()
|
cReplayControl::SetRecording(NULL, NULL); // make sure the new cRecordControl will set cReplayControl::LastReplayed()
|
||||||
if (Start(NULL, true)) {
|
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;
|
cReplayControl *rc = new cReplayControl;
|
||||||
cControl::Launch(rc);
|
cControl::Launch(rc);
|
||||||
cControl::Attach();
|
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);
|
Skins.Message(mtStatus, NULL);
|
||||||
rc->ProcessKey(kPause); // pause, allowing replay mode display
|
rc->ProcessKey(kPause); // pause, allowing replay mode display
|
||||||
return true;
|
return true;
|
||||||
|
4
tools.c
4
tools.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: tools.c 2.18 2011/09/18 11:22:21 kls Exp $
|
* $Id: tools.c 2.19 2011/12/04 14:52:38 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
@ -1789,7 +1789,7 @@ bool cLockFile::Lock(int WaitSeconds)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (WaitSeconds)
|
if (WaitSeconds)
|
||||||
sleep(1);
|
cCondWait::SleepMs(1000);
|
||||||
}
|
}
|
||||||
} while (f < 0 && time(NULL) < Timeout);
|
} while (f < 0 && time(NULL) < Timeout);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user