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

Jean-Yves Avenard jyavenard at gmail.com
Wed Jun 18 01:42:30 UTC 2014


On 18 June 2014 10:13, Jean-Yves Avenard <jyavenard at gmail.com> wrote:
> 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)
>      {

I've opened this ticket for the time being:
https://code.mythtv.org/trac/ticket/12179


More information about the mythtv-users mailing list