Permalink
Browse files

MythPlayer: Start the decoder paused and unpause it only when ready.

This has a clear benefit on a number of different recordings and sample clips and often completely eliminates the initial av sync adjustment.

Closes #9120

Signed-off-by: Mark Kendall <mkendall@mythtv.org>
  • Loading branch information...
1 parent caf431c commit 0b1f9d2b96111a8ec27229945b3d397b5c2a5927 Mark Spieth committed with Mark Kendall Mar 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/mythplayer.cpp
@@ -2444,12 +2444,13 @@ bool MythPlayer::StartPlaying(void)
bool seek = bookmarkseek > 30;
EventStart();
- DecoderStart(seek);
+ DecoderStart(true);
if (seek)
InitialSeek();
VideoStart();
playerThread->setPriority(QThread::TimeCriticalPriority);
+ UnpauseDecoder();
return !IsErrored();
}
@@ -2462,7 +2463,6 @@ void MythPlayer::InitialSeek(void)
if (clearSavedPosition && !player_ctx->IsPIP())
ClearBookmark(false);
}
- UnpauseDecoder();
}

0 comments on commit 0b1f9d2

Please sign in to comment.