summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-01-28 14:54:56 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-01-28 14:54:56 (GMT)
commitc3e1879e0c284b3c22676ee50fb002d4bd994ce7 (patch)
tree703cf4fdf933a800d4798df4e5528e3f77e99c10
parentf776c64cdfb5769773b42cf0b7e785b8a2ee28cd (diff)
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.
-rw-r--r--mythtv/libs/libmythtv/mythplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 7073e2e..63e1837 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -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);