[mythtv] ringbuffer.cpp
Russell Gower
mythtv at thegowers.me.uk
Tue Feb 18 20:24:31 UTC 2014
On 18 Feb 2014, at 20:07, Jonas Arndt <jonas.arndt at thearndtfamily.com> wrote:
>
> On 02/18/2014 01:26 AM, Russell Gower wrote:
>> Hi,
>> I get a similar problem but for me the errors are in the frontend log not the backend log, but I suspect that is because I'm running a combined BE/FE machine.
>>
>> I've ruled out disk IO completely by moving my LiveTV storage group to a RAM filesystem and I still get the issue. I'm convinced it's because the frontend is playing too close to realtime, I suspect it isn't helped by the fact the BE prefers to write in 64kib chunks and the FE prefers to read in 32kib chunks. I do however have a fix - its a dirty hack, I've added a 2 second sleep to MythPlayer::OpenFile of course this slows down channel changes etc but so far (about a week) I've not had a reoccurance.
>>
>> Regards
>> Russell
> Russel,
>
> What line did you add the sleep on? Perhaps you have a diff file?
>
> I know it is a dirty hack but my friend is getting sicker and sicker with MythTV and I need something that takes the pain away, even if it is not long-term sane.
>
Hi,
I've not bothered creating a patch as it's a very simple change, I'm running 0.27-fixes. On line 929 of mythtv/libs/libmythtv/mythplayer.cpp (just after the line "int testreadsize = 2048;") I added a "usleep(2 * 1000 * 1000);"
Regards
Russell
More information about the mythtv-dev
mailing list