[mythtv-commits] mythtv/master commit: 1c6e0ee46 by Daniel Kristjansson (daniel-kristjansson)

MythTV noreply at mythtv.org
Wed Jul 27 14:54:29 UTC 2011


      Author:  Daniel Kristjansson <danielk at cuymedia.net>
 Change Date:  2011-07-27T07:49:42-07:00
   Push Date:  2011/07/27 07:54:05 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  1c6e0ee4660844db634976c5762463182dc1886e
   Changeset:  https://github.com/MythTV/mythtv/commit/1c6e0ee46

Log:

Fixes an issue where some RecordingInfo() constructions on the backend were not fully populated.

To avoid an event loop in ProgramInfo::LoadFromScheduler() we simply ignored this data when called from within a backend.
Thankfully an error message was printed out which is what allowed me to find the problem to fix it.

In theory this data was already available to us in the master backend through the scheduler, but we did not have any simple means of communicating with the scheduler. This adds a MythScheduler interface and adds an accessor for it to MythCoreContext. There are only two methods made available in it, GetAllPending() and GetRecording(), but this could also be extended to get rid of thunking classes like ScheduledRecording (which sends a one-way signal to the scheduler).

This also gets rid of the global sched variable. The few places needed to be a global now use the MythScheduler interface instead.

Added:

   mythtv/libs/libmythbase/mythscheduler.h

Modified:

   mythtv/libs/libmyth/programinfo.cpp
   mythtv/libs/libmythbase/mythcorecontext.cpp
   mythtv/libs/libmythbase/mythcorecontext.h
   mythtv/libs/libmythbase/mythversion.h
   mythtv/programs/mythbackend/backendcontext.cpp
   mythtv/programs/mythbackend/backendcontext.h
   mythtv/programs/mythbackend/httpstatus.cpp
   mythtv/programs/mythbackend/main_helpers.cpp
   mythtv/programs/mythbackend/mainserver.cpp
   mythtv/programs/mythbackend/scheduler.cpp
   mythtv/programs/mythbackend/scheduler.h
   mythtv/programs/mythbackend/services/dvr.cpp
   mythtv/programs/mythbackend/services/guide.cpp



More information about the mythtv-commits mailing list