[mythtv] How to inform mythbackend that a program is ready to be
recorded...
Matt Zimmerman
mdz at debian.org
Sun Apr 6 20:37:02 EDT 2003
On Mon, Apr 07, 2003 at 12:18:16AM +0200, Leandro Dardini wrote:
> 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?
This is done by automatically by ScheduledRecording::signalChange() whenever
you save a ScheduledRecording object, which you have done (quite indirectly)
through the above procedure. This sets a column in the database which is
checked by ScheduledRecording::hasChanged(), which the scheduler polls about
once per second (Scheduler::CheckForChanges).
I don't know why it wouldn't be triggered in your setup, but that should
give you more thna enough information to track down the problem.
--
- mdz
More information about the mythtv-dev
mailing list