[mythtv] [PATCH] less crashes when no connection can be made tobackend

Isaac Richards ijr at po.cwru.edu
Thu Oct 2 12:55:41 EDT 2003


On Thursday 02 October 2003 05:37 am, Tako Schotanus wrote:
> Not yet, I can keep it from crashing but some parts of the code will
> just start waiting on other parts.
>
> What I tried doing was ussuing a StopReads() the moment the RingBuffer's
> safe_read() notices that the connection to the backend has been lost.
> That works and the user will just see a blank screen instead of a crash.
> But it seems that I have to bubble up an error code/state somehow
> because what I get are rebuffering pauses and stuff like that. So I
> guess other parts of the code just think the connection is slow instead
> of gone.

Might be just as easy as setting eof to true in the ringbuffer..  I'll 
hopefully have time to look into this tonight sometime, but I've promised 
Kevin Thayer that I'd look into some issues with the pvr-350 decoder support 
first.

Isaac


More information about the mythtv-dev mailing list