Skip to content

Commit

Permalink
MythPlayer: Start the decoder paused and unpause it only when ready.
Browse files Browse the repository at this point in the history
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
Mark Spieth authored and Mark Kendall committed Mar 20, 2011
1 parent caf431c commit 0b1f9d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -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();
}

Expand All @@ -2462,7 +2463,6 @@ void MythPlayer::InitialSeek(void)
if (clearSavedPosition && !player_ctx->IsPIP())
ClearBookmark(false);
}
UnpauseDecoder();
}


Expand Down

0 comments on commit 0b1f9d2

Please sign in to comment.