[mythtv-commits] mythtv commit: r13619 - in trunk/mythtv by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sat Jun 9 02:59:33 UTC 2007


      Author: cpinkham
        Date: 2007-06-09 02:59:32 +0000 (Sat, 09 Jun 2007)
New Revision: 13619
   Changeset: http://cvs.mythtv.org/trac/changeset/13619

Modified:

   trunk/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
   trunk/mythtv/libs/libmythtv/NuppelVideoRecorder.h
   trunk/mythtv/libs/libmythtv/dtvrecorder.cpp
   trunk/mythtv/libs/libmythtv/dtvrecorder.h
   trunk/mythtv/libs/libmythtv/mpegrecorder.cpp
   trunk/mythtv/libs/libmythtv/mpegrecorder.h
   trunk/mythtv/libs/libmythtv/recorderbase.cpp
   trunk/mythtv/libs/libmythtv/recorderbase.h
   trunk/mythtv/libs/libmythtv/tv_rec.cpp
   trunk/mythtv/programs/mythtranscode/transcode.cpp

Log:

Move the seektable writing code out from the main recorder threads and into
the TVRec main thread.  Now the recorder threads fill in the positionMap and
positionMapDelta and the TVRec class calls RecorderBase::SavePositionMap()
to consume the data.

If it is determined that we should write the delta to the database, a copy of
the delta map is made and the positionMapLock is unlocked.  This allows us to
keep the position maps for as short of time as possible and allows the DB
update to happen without impacting the recorders collecting data.

As part of this, I moved the *Recorder::SavePositionMap() code into
RecorderBase because the only difference between the three was the
positionmap type.  The type is now stored in a variable set by the three
*Recorder classes affected.

Closes #1660.






More information about the mythtv-commits mailing list