[mythtv-commits] mythtv commit: r7197 - in trunk/mythtv by gigem

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon Sep 5 00:46:25 UTC 2005


      Author: gigem
        Date: 2005-09-05 00:46:24 +0000 (Mon, 05 Sep 2005)
New Revision: 7197
   Changeset: http://cvs.mythtv.org/trac/changeset/7197

Modified:

   trunk/mythtv/libs/libmythtv/scheduledrecording.cpp
   trunk/mythtv/programs/mythbackend/mainserver.cpp
   trunk/mythtv/programs/mythbackend/scheduler.cpp
   trunk/mythtv/programs/mythbackend/scheduler.h

Log:

Changed ScheduledRecording::doneRecording to send a Myth event when a
recording finishes instead of calling ProgramInfo::AddHistory.  The
scheduler will receive the event, log the status change and call
AddHistory.

This accomplishes two things.  First, the scheduler doesn't have to
guess that a recording finished just because the end-time passed.
Second, and more important, it provides a mechanism for recorders to
report other status changes to the scheduler.

A likely future example of the latter is when a recorder can't detect
a signal.  The recorder can notify the scheduler and it can reschedule
the program for a later showing if possible.  Another example is when
a driver problem prevents the recorder from reading data like
sometimes happens with the ivtv recorder.





More information about the mythtv-commits mailing list