[mythtv] Re: DVB - "Unable to find channel in database"
ldardini at tiscali.it
Tue Mar 8 05:40:27 UTC 2005
----- Original Message -----
From: "Blammo" <blammo.doh at gmail.com>
To: "Development of mythtv" <mythtv-dev at mythtv.org>
Sent: Tuesday, March 08, 2005 1:29 AM
Subject: [mythtv] Re: DVB - "Unable to find channel in database"
> 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.
Unfortunately this is not enough. When mythbackend is tuned on a channel, it
remains tuned until mythfrontend asks to change channel. Database is read
only on startup. It is not read switching from None to LiveTV.
More information about the mythtv-dev