[mythtv-commits] mythtv commit: r12439 - in trunk/mythtv/libs by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sun Jan 7 15:29:31 UTC 2007


      Author: danielk
        Date: 2007-01-07 15:29:30 +0000 (Sun, 07 Jan 2007)
New Revision: 12439
   Changeset: http://cvs.mythtv.org/trac/changeset/12439

Modified:

   trunk/mythtv/libs/libmyth/util.cpp
   trunk/mythtv/libs/libmyth/util.h
   trunk/mythtv/libs/libmythtv/dtvsignalmonitor.cpp
   trunk/mythtv/libs/libmythtv/dtvsignalmonitor.h
   trunk/mythtv/libs/libmythtv/dvbcam.cpp
   trunk/mythtv/libs/libmythtv/dvbcam.h
   trunk/mythtv/libs/libmythtv/dvbchannel.cpp
   trunk/mythtv/libs/libmythtv/dvbchannel.h
   trunk/mythtv/libs/libmythtv/dvbdev/dvbci.cpp
   trunk/mythtv/libs/libmythtv/dvbdev/dvbci.h
   trunk/mythtv/libs/libmythtv/dvbrecorder.cpp
   trunk/mythtv/libs/libmythtv/dvbrecorder.h
   trunk/mythtv/libs/libmythtv/dvbsignalmonitor.cpp
   trunk/mythtv/libs/libmythtv/dvbsignalmonitor.h
   trunk/mythtv/libs/libmythtv/dvbtypes.h
   trunk/mythtv/libs/libmythtv/eithelper.cpp
   trunk/mythtv/libs/libmythtv/mpeg/atscstreamdata.cpp
   trunk/mythtv/libs/libmythtv/mpeg/atsctables.h
   trunk/mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp
   trunk/mythtv/libs/libmythtv/mpeg/dvbtables.cpp
   trunk/mythtv/libs/libmythtv/mpeg/dvbtables.h
   trunk/mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp
   trunk/mythtv/libs/libmythtv/mpeg/mpegstreamdata.h
   trunk/mythtv/libs/libmythtv/mpeg/mpegtables.h
   trunk/mythtv/libs/libmythtv/mpeg/streamlisteners.h
   trunk/mythtv/libs/libmythtv/siscan.h

Log:

Fixes #2703. Adds PSIP UTC time handling.

 * Adds DVB TDT parsing
 * Adds accurate time estimation based on DVB TDT and ATSC STT time.
 * Passes the accurate time delta to the Conditional Access Module class
 * Adds code to the CAM class to so that it can pass the correct time
   to the CAM wrt to what time the station thinks it is (which can be
   several seconds off from our time even when using NTP.)
 * Moves time handling function to util so it can be shared by the
   new code and the existing time methods in EITHelper.

The DVB spec says that the CAM must be given accurate time WRT to the transmission time of the stream, if either our clock was off or the transmitters time was off then the old code did not do this because we just sent our UTC time to the CAM. With this code we calculate the offset between our time and DVB time and use that to adjust the code we send to the CAM. This change should prevent us from losing more than a second of data when the CAM encryption changes during the transmission of a program we are recording.

The ATSC time offset is just a bonus since the computation is performed in mpegstreamdata, but this and the DVB time offset could be used to set the local clock.






More information about the mythtv-commits mailing list