Permalink
Browse files

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
  • Loading branch information...
1 parent f1831b2 commit 206d42c28ce9d379b3937498413bd222e9eb07e1 @gigem gigem committed Nov 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 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.");

0 comments on commit 206d42c

Please sign in to comment.