[mythtv] [PATCH] Choppy playback fix
Mark A. Mankins
raider15 at mankins.us
Sat Dec 4 15:41:24 UTC 2004
My previous patch caused a deadlock when playback was paused. This patch
fixes the choppy playback and allows pause/resume to work properly.
Mark
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/NuppelVideoPlayer.cpp,v
retrieving revision 1.399
diff -u -r1.399 NuppelVideoPlayer.cpp
--- libs/libmythtv/NuppelVideoPlayer.cpp 3 Dec 2004 03:59:11 -0000 1.399
+++ libs/libmythtv/NuppelVideoPlayer.cpp 4 Dec 2004 15:35:32 -0000
@@ -1839,9 +1839,8 @@
if (nvr_enc && nvr_enc->GetErrorStatus())
killplayer = true;
- // Yield before acquiring the decoder lock to give the TV
- // thread a chance to get in.
- sched_yield();
+ if(paused) sched_yield();
+
QMutexLocker decoder_locker(&decoder_lock);
if (rewindtime < 0)
More information about the mythtv-dev
mailing list