[mythtv] [PATCH] Choppy playback fix
Mark A. Mankins
raider15 at mankins.us
Sat Dec 4 02:32:07 UTC 2004
This patch fixed problems with very choppy playback for me. The problems were
most noticeable while watching live tv, or watching one program while
recording another.
Mark
Index: libs/libmythtv/NuppelVideoPlayer.cpp
===================================================================
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 01:58:54 -0000
@@ -1841,7 +1841,7 @@
// Yield before acquiring the decoder lock to give the TV
// thread a chance to get in.
- sched_yield();
+ //sched_yield();
QMutexLocker decoder_locker(&decoder_lock);
if (rewindtime < 0)
Index: libs/libmythtv/RingBuffer.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/RingBuffer.cpp,v
retrieving revision 1.106
diff -u -r1.106 RingBuffer.cpp
--- libs/libmythtv/RingBuffer.cpp 22 Oct 2004 09:32:54 -0000 1.106
+++ libs/libmythtv/RingBuffer.cpp 4 Dec 2004 01:58:55 -0000
@@ -903,8 +903,8 @@
if ((used >= fill_threshold || wantseek) && !pausereadthread)
usleep(500);
- else if (!pausereadthread)
- sched_yield();
+ //else if (!pausereadthread)
+ // sched_yield();
}
delete [] readAheadBuffer;
More information about the mythtv-dev
mailing list