[mythtv-users] Mythtv can't play "Bergensbanen"

Jean-Yves Avenard jyavenard at gmail.com
Wed Jun 18 00:13:08 UTC 2014


That was an easy fix.. but one that could have bad consequences.

For the time being, this will fix it:
diff --git a/mythtv/libs/libmythtv/ringbuffer.cpp b/mythtv/libs/libmythtv/ringbu
index 5628863..8dbd62c 100644
--- a/mythtv/libs/libmythtv/ringbuffer.cpp
+++ b/mythtv/libs/libmythtv/ringbuffer.cpp
@@ -1251,6 +1251,7 @@ bool RingBuffer::WaitForAvail(int count)
 {
     int avail = ReadBufAvail();
     count = (ateof && avail < count) ? avail : count;
+    count = !ateof && avail < count && avail > 0 ? avail : count;

     if (livetvchain && setswitchtonext && avail < count)
     {


More information about the mythtv-users mailing list