summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-05-13 18:33:24 +0200
committerJohns <johns98@gmx.net>2012-05-13 18:33:24 +0200
commit752ee356fa599ba9ede80385ab08ac7c75b127eb (patch)
treecfe83ff7932559614b3b669bffe98bd736726712 /video.c
parent43e70b6a3fea0112900507ddcbea43e34423ddd0 (diff)
downloadvdr-plugin-softhddevice-752ee356fa599ba9ede80385ab08ac7c75b127eb.tar.gz
vdr-plugin-softhddevice-752ee356fa599ba9ede80385ab08ac7c75b127eb.tar.bz2
Poll input buffers, if display buffers are full.
Diffstat (limited to 'video.c')
-rw-r--r--video.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/video.c b/video.c
index f7666c7..8be3aa8 100644
--- a/video.c
+++ b/video.c
@@ -4677,8 +4677,10 @@ static void VaapiDisplayHandlerThread(void)
// FIXME: hot polling
pthread_mutex_lock(&VideoLockMutex);
// fetch+decode or reopen
- err = VideoDecode();
+ err = VideoDecodeInput();
pthread_mutex_unlock(&VideoLockMutex);
+ } else {
+ err = VideoPollInput();
}
if (err) {
// FIXME: sleep on wakeup
@@ -8085,8 +8087,10 @@ static void VdpauDisplayHandlerThread(void)
// FIXME: hot polling
pthread_mutex_lock(&VideoLockMutex);
// fetch+decode or reopen
- err = VideoDecode();
+ err = VideoDecodeInput();
pthread_mutex_unlock(&VideoLockMutex);
+ } else {
+ err = VideoPollInput();
}
if (err) {
// FIXME: sleep on wakeup
@@ -10296,7 +10300,7 @@ void FeedKeyPress( __attribute__ ((unused))
{
}
-int VideoDecode(void)
+int VideoDecodeInput(void)
{
return -1;
}