summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Engel <dengel@mythtv.org>2010-11-29 17:05:30 (GMT)
committer David Engel <dengel@mythtv.org>2010-11-29 17:05:30 (GMT)
commit3ec54bb6500eb02bcc0b41808e203798625d0672 (patch)
treead1449c8785a51d183e4def4afceedb2c77ef8aa
parent2d67f9f5a384fab8aced0e3ed9f82065864f758d (diff)
Change MythPlayer::DecoderGetFrame() poll more frequently for free
video frames. This speeds up the resumption of playback after seeking which was noticeably slower than it was in 0.23. git-svn-id: http://svn.mythtv.org/svn/trunk@27372 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/libs/libmythtv/mythplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 7361e8f..b9601fc 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -2926,10 +2926,10 @@ bool MythPlayer::DecoderGetFrame(DecodeType decodetype, bool unsafe)
{
int tries = 0;
while (!videoOutput->EnoughFreeFrames() && (tries++ < 10))
- usleep(10000);
+ usleep(1000);
if (!videoOutput->EnoughFreeFrames())
{
- if (++videobuf_retries >= 200)
+ if (++videobuf_retries >= 2000)
{
VERBOSE(VB_IMPORTANT, LOC +
"Timed out waiting for free video buffers.");