[mythtv-commits] mythtv/master commit: 53663999b by Gavin Hurlbut (Beirdo)

MythTV noreply at mythtv.org
Sat Feb 12 05:06:37 UTC 2011


      Author:  Gavin Hurlbut <ghurlbut at mythtv.org>
 Change Date:  2011-02-11T21:05:59-08:00
   Push Date:  2011/02/11 21:06:35 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  53663999b09a4f7c4a3b67edf2dcdf08f170d761
   Changeset:  https://github.com/MythTV/mythtv/commit/53663999b

Log:

Store calculated duration in the db

At recording end, a value of recendts - recstartts (converted to ms) is stored
in the recordedmarkup table.  At the end of commflag or a seektable rebuild,
the accurate number of ms (as determined by adding frame times during playback)
will overwrite this value.

On playback, this value is checked first.  If the value is in the database, it
is used for the duration in the OSD.  If it is not there, then the duration
from ffmpeg will be used instead.

To get this working, it was necessary to reset the calculated duration after
the logo scan in commflagging, otherwise the end result was incorrect.

Modified:

   mythtv/libs/libmyth/programinfo.cpp
   mythtv/libs/libmyth/programinfo.h
   mythtv/libs/libmyth/programtypes.h
   mythtv/libs/libmythtv/avformatdecoder.cpp
   mythtv/libs/libmythtv/decoderbase.cpp
   mythtv/libs/libmythtv/decoderbase.h
   mythtv/libs/libmythtv/mythcommflagplayer.cpp
   mythtv/libs/libmythtv/mythplayer.cpp
   mythtv/libs/libmythtv/mythplayer.h
   mythtv/libs/libmythtv/recorderbase.cpp
   mythtv/libs/libmythtv/recorderbase.h
   mythtv/libs/libmythtv/recordinginfo.cpp
   mythtv/programs/mythcommflag/ClassicCommDetector.cpp
   mythtv/programs/mythcommflag/CommDetector2.cpp
   mythtv/programs/mythcommflag/main.cpp



More information about the mythtv-commits mailing list