summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-14 14:08:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-14 14:08:47 +0100
commit0ad4b2a713d3188e54c6833fc5860109725fca0a (patch)
tree60f16a5f7f5b161919a72178e0ab4136ffbf8e2f /dvbdevice.c
parent0d596d04787086c607eedb1de3dd1d08a1db983e (diff)
downloadvdr-0ad4b2a713d3188e54c6833fc5860109725fca0a.tar.gz
vdr-0ad4b2a713d3188e54c6833fc5860109725fca0a.tar.bz2
Made cCondWait::SleepMs() sleep at least 3ms to avoid a possible busy wait
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 9c7fd381..d497aaff 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.113 2005/01/09 13:04:20 kls Exp $
+ * $Id: dvbdevice.c 1.114 2005/01/14 14:00:44 kls Exp $
*/
#include "dvbdevice.h"
@@ -1111,7 +1111,7 @@ void cDvbDevice::StillPicture(const uchar *Data, int Length)
#define MIN_IFRAME 400000
for (int i = MIN_IFRAME / Length + 1; i > 0; i--) {
safe_write(fd_video, Data, Length);
- cCondWait::SleepMs(1); // allows the buffer to be displayed in case the progress display is active
+ cCondWait::SleepMs(3); // allows the buffer to be displayed in case the progress display is active
}
#endif
}