summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Engel <dengel@mythtv.org>2010-11-29 17:14:16 (GMT)
committer David Engel <dengel@mythtv.org>2010-11-29 17:14:16 (GMT)
commit206d42c28ce9d379b3937498413bd222e9eb07e1 (patch)
treeb9e5da8eb4cb473466f14fdd2e4834479f7c428b
parentf1831b27d168234a268ae2b784d560dcc094908f (diff)
Backport [27372] to release-0-24-fixes branch.
Change MythPlayer::DecoderGetFrame() to 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/branches/release-0-24-fixes@27373 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 f522cf8..329978e 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -2912,10 +2912,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.");