[mythtv] adding a working fallback if DefaultTVChannel is not found?
Petr Stehlik
pstehlik at sophics.cz
Mon Dec 12 16:16:33 EST 2005
Hi all,
would it make sense to add a safe fallback to first (or any) channel of
given sourceid if the DefaultTVChannel for that sourceid was not found
(for any reason)? Perhaps using something similar to the following SQL:
SELECT channum FROM channel WHERE sourceid=<SID> AND visible=1 LIMIT 0,1
I could watch DVB-S again without getting the error below (I know I can
hack the DefaultTVChannel in DB directly but if the fallback was there I
wouldn't have to).
2005-12-12 21:42:55.692 TVRec(2): Changing from None to WatchingLiveTV
2005-12-12 21:42:55.695 DVB#0 ERROR - Unable to find channel in database.
2005-12-12 21:42:55.696 DVB#0 ERROR - Failed to get channel options for channel 30676.
2005-12-12 21:42:55.697 TVRec(2) Error: Failed to set channel to 30676.
2005-12-12 21:42:55.698 TVRec(2) Error: Channel: '' was not found in the database.
Most likely, your DefaultTVChannel setting is wrong.
Could not start livetv.
2005-12-12 21:42:55.700 TVRec(2) Error: CreateLiveTVRingBuffer() failed
2005-12-12 21:42:55.700 TVRec(2) Error: Failed to create RingBuffer 1
2005-12-12 21:42:55.702 TVRec(2): Changing from WatchingLiveTV to None
Thanks for considering.
Petr
More information about the mythtv-dev
mailing list