[mythtv] Re: DVB - "Unable to find channel in database"

Blammo blammo.doh at gmail.com
Tue Mar 8 00:29:37 UTC 2005

On Mon, 7 Mar 2005 15:39:26 -0700, Blammo <blammo.doh at gmail.com> wrote:
> I've run into a situation (can't figure out how) where a null value
> gets entered into the startup / pretune value on the DVB card. I can
> change it in SQL, and it changes itself back to null.

Ok, service stop, make the change in SQL, service start.. it's fixed.. 

So the issue appears to be the backend somehow getting a null value in
startup channel, then refusing to believe what SQL has.

So to recap:

-- LiveTV won't work, null value in SQL:cardinput:starchan
-- change SQL value, attempt liveTV, still fails, Null re-written to
SQL by backend
-- stop backend, change SQL value, start backend, everything ok.

The symptom appears as so:

2005-03-07 16:21:50.747 DVB#0 Trying to tune to channel .
2005-03-07 16:21:50.752 DVB#0 ERROR - Unable to find channel in database.
2005-03-07 16:21:50.753 DVB#0 ERROR - Failed to get channel options
for channel .

Logic to fix this would be something like (forgive my terrible
psuedo-code, mix of bash and sql, it's been a long time since college
C/C++ classes)

if (card(startchan) == null or card(startchan) = '.')  and cardtype
like '%dvb%' then set card(startchan) = (first valid channel for my
input type)

Hope this is enough to help find a solution for this problem.

More information about the mythtv-dev mailing list