Skip to content

Commit

Permalink
reverted commit f47ee3a "Speedup queuing output surface, when decoder…
Browse files Browse the repository at this point in the history
… buffers are full" since it slowed down osd display drastically
  • Loading branch information
louisbraun committed Jan 10, 2016
1 parent 35e6e15 commit 0c7259b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion po/de_DE.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR \n"
"Report-Msgid-Bugs-To: <see README>\n"
"POT-Creation-Date: 2015-10-20 14:39+0200\n"
"POT-Creation-Date: 2016-01-10 12:56+0100\n"
"PO-Revision-Date: blabla\n"
"Last-Translator: blabla\n"
"Language-Team: blabla\n"
Expand Down
15 changes: 12 additions & 3 deletions video.c
Expand Up @@ -9237,9 +9237,18 @@ static void VdpauDisplayHandlerThread(void)

if (!decoded) { // nothing decoded, sleep
// FIXME: sleep on wakeup
usleep(1 * 1000);
//usleep(1 * 1000);
usleep(5 * 1000);
}
// all decoder buffers are full

clock_gettime(CLOCK_MONOTONIC, &nowtime);
// time for one frame over?
if ((nowtime.tv_sec - VdpauFrameTime.tv_sec) * 1000 * 1000 * 1000 +
(nowtime.tv_nsec - VdpauFrameTime.tv_nsec) < 15 * 1000 * 1000) {
return;
}
/*
// all decoder buffers are full
// and display is not preempted
// speed up filling display queue, wait on display queue empty
if (!allfull || VdpauPreemption) {
Expand All @@ -9257,7 +9266,7 @@ static void VdpauDisplayHandlerThread(void)
return;
}
}

*/
pthread_mutex_lock(&VideoLockMutex);
VdpauSyncDisplayFrame();
pthread_mutex_unlock(&VideoLockMutex);
Expand Down

0 comments on commit 0c7259b

Please sign in to comment.