diff options
| author | Johns <johns98@gmx.net> | 2012-05-13 18:33:24 +0200 |
|---|---|---|
| committer | Johns <johns98@gmx.net> | 2012-05-13 18:33:24 +0200 |
| commit | 752ee356fa599ba9ede80385ab08ac7c75b127eb (patch) | |
| tree | cfe83ff7932559614b3b669bffe98bd736726712 /video.c | |
| parent | 43e70b6a3fea0112900507ddcbea43e34423ddd0 (diff) | |
| download | vdr-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.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; } |
