[mythtv-commits] Ticket #12179: MythTV doesn't play file
MythTV
noreply at mythtv.org
Wed Jun 18 01:42:03 UTC 2014
#12179: MythTV doesn't play file
-------------------------------------+-----------------------------
Reporter: jyavenard | Owner: jyavenard
Type: Bug Report - General | Status: new
Priority: minor | Milestone: 0.27.2
Component: MythTV - Video Playback | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+-----------------------------
Comment (by jyavenard):
{{{
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)
{
}}}
this allows to play that particular file.
However I'm not comfortable with simply returning a value > 0 if we have
one.
We should still wait under special circumstances.
still looking at a more appropriate fix, that would less likely cause
regression
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12179#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list