Skip to content

Commit c3e1879

Browse files
author
Mark Kendall
committed
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.
1 parent f776c64 commit c3e1879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmythtv/mythplayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ bool MythPlayer::Pause(void)
341341
next_normal_speed = false;
342342
PauseVideo();
343343
audio.Pause(true);
344-
PauseDecoder();
345344
PauseBuffer();
345+
PauseDecoder();
346346
allpaused = decoderPaused && videoPaused && bufferPaused;
347347
{
348348
QMutexLocker locker(&decoder_change_lock);

0 commit comments

Comments
 (0)