Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pause the RingBuffer before pausing the decoder.
If the RingBuffer has reached, or is very close to, the end of the file
then it may be in a wait state. Pausing the RingBuffer clears this wait
state and hence frees up the decoder thread so that it can be paused
quickly.
  • Loading branch information
Mark Kendall committed Jan 28, 2011
1 parent f776c64 commit c3e1879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -341,8 +341,8 @@ bool MythPlayer::Pause(void)
next_normal_speed = false;
PauseVideo();
audio.Pause(true);
PauseDecoder();
PauseBuffer();
PauseDecoder();
allpaused = decoderPaused && videoPaused && bufferPaused;
{
QMutexLocker locker(&decoder_change_lock);
Expand Down

0 comments on commit c3e1879

Please sign in to comment.