[mythtv] How to inform mythbackend that a program is ready to be recorded...

Leandro Dardini ldardini at tiscali.it
Mon Apr 7 22:03:59 EDT 2003


You don't belive it, but today, even without recompiling the source,
recording starts without problems. Maybe my linux box is becoming similar to
a windows machine and needs to be rebooted often.

Leandro

----- Original Message -----
From: "Bruce Markey" <bjm at lvcm.com>
To: "Development of mythtv" <mythtv-dev at snowman.net>
Sent: Monday, April 07, 2003 2:02 AM
Subject: Re: [mythtv] How to inform mythbackend that a program is ready to
be recorded...


> Leandro Dardini wrote:
> > I am unsatisfied by the current manualrecording addition. I was waiting
for
> > something that let me program a recording for a given date, time and
> > channel... so I recode it.
> >
> > It was a simple, but tedious work. The big work was already been done by
> > Chris Derossi, (thank you), I simple throw away the m_tv code and add a
> > keyboard interface (over 40 buttons, from A to Z and others) to be able
to
> > insert the title with the remote controller, plus a simple interface to
> > insert date and time of start and choose what channel to record.
> >
> > What is the problem? After filling ProgramInfo structure with the
recording
> > data, as Chris Derossi do, I issue a
> >
> > ProgramInfo proginfo;
> >
> > ... some code to fill proginfo...
> >
> > progInfo.Save();
> >
> > progInfo.ApplyRecordStateChange(db, ScheduledRecording::SingleRecord);
> >
> > In mysql I can see the info correctly added to mythconverg.record table,
but
> > mythbackend seem to ignore them... If I stop and restart mythbackend,
the
> > program is recorded and the record is moved to recorded and oldrecorded
> > tables.
> >
> > So the big question is: How can I inform mythbackend that a record is
laying
> > in mythconverg.record table?
>
> It looks like the scheduler reruns if hasChanged() is true
> when finding RecordChanged = 'yes' in the settings table.
>
> ScheduledRecording::signalChange(QSqlDatabase* db)
> (see line 342 in MC/libs/libmythtv/scheduledrecording.cpp)
> does the deed but maybe it sould be only be called by
> something like ScheduledRecording::save(). Trace other
> things that add to 'record' and see how they get to
> signalChange().
>
> --  bjm
>
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-dev



More information about the mythtv-dev mailing list