summaryrefslogtreecommitdiff
path: root/dxr3outputthread.c
diff options
context:
space:
mode:
authorscop <scop>2007-01-28 16:51:15 +0000
committerscop <scop>2007-01-28 16:51:15 +0000
commita3f259961e39e7820b3b634208b2f0bcb8507920 (patch)
tree1b0b249b0e0751d000c2ecda5d47fd388681df69 /dxr3outputthread.c
parent43dde98aaf45f80682439f89685c1495e4f9d10a (diff)
downloadvdr-plugin-dxr3-a3f259961e39e7820b3b634208b2f0bcb8507920.tar.gz
vdr-plugin-dxr3-a3f259961e39e7820b3b634208b2f0bcb8507920.tar.bz2
Use cCondWait::SleepMs() instead of usleep().
Diffstat (limited to 'dxr3outputthread.c')
-rw-r--r--dxr3outputthread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dxr3outputthread.c b/dxr3outputthread.c
index b934d58..81c6a3d 100644
--- a/dxr3outputthread.c
+++ b/dxr3outputthread.c
@@ -20,7 +20,6 @@
*/
#include <stdio.h>
-#include <unistd.h>
#include <time.h>
#include "dxr3outputthread.h"
@@ -117,7 +116,7 @@ void cDxr3AudioOutThread::Action()
if ((pts > SCR && abs((int)pts - (int)SCR) > AUDIO_OFFSET))
{
- usleep(10000);
+ cCondWait::SleepMs(10);
}
}
}
@@ -199,7 +198,7 @@ void cDxr3VideoOutThread::Action()
if ((pts > SCR && abs((int)pts - (int)SCR) > 7500 ))
{
- usleep(10000);
+ cCondWait::SleepMs(10);
}
}
}