Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
(cherry picked from commit c3e1879)
  • Loading branch information...
commit 8d1c058411db38440740bbc5b0957edb09171c04 1 parent 9250772
Mark Kendall authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mythtv/libs/libmythtv/mythplayer.cpp
View
2  mythtv/libs/libmythtv/mythplayer.cpp
@@ -338,8 +338,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);
Please sign in to comment.
Something went wrong with that request. Please try again.