[mythtv] [PATCH] mythbackend exit in HandleRemoteEncoder

Kevin Kuphal kuphal at dls.net
Fri Jul 23 15:51:00 EDT 2004

Isaac Richards wrote:

>On Friday 23 July 2004 02:47 am, Kevin Kuphal wrote:
>>This patch fixes a problem where the QUERY_REMOTEENCODER message to the
>>backend will cause the backend to exit harshly if the encoder ID is
>>invalid.  With this patch, the backend returns "bad" as it does in the
>>same situation with QUERY_RECORDER and continues to run.
>It shouldn't be possible for this to happen, though..  I don't think anything 
>would handle the failure case, here.  How did you get it to have a bad id?
Easy, I passed it a bad tuner ID.  It's not likely that it will happen 
in the course of regular events, but if someone was implementing a poor 
method of querying a tuner (as I did on my first attempt) and picked or 
used the wrong ID, it seems better that the backend return a failure 
rather than dying.


More information about the mythtv-dev mailing list