[mythtv-commits] mythtv/master commit: e4bccbc22 by Taylor Ralph (tralph)

MythTV noreply at mythtv.org
Wed Aug 17 21:11:48 UTC 2011


      Author:  Taylor Ralph <tralph at mythtv.org>
 Change Date:  2011-08-17T14:11:09-07:00
   Push Date:  2011/08/17 14:11:41 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  e4bccbc2291d3e30520ce00c60af94a2a18efb5b
   Changeset:  https://github.com/MythTV/mythtv/commit/e4bccbc22

Log:

ProgramInfo: add SaveTotalFrames to complement the existing SaveTotalDuration.

The goal of this new field is to allow commflag and the recorder class to store both the total frames and total duration. This will allow the player to display the correct position and duration for programs that are telecined, etc. We will use the following formula to determine the current position.

int position = (frame/total_frames) * duration;

I would also like, if possible, for the recorders to store the wall time of the first frame, current frame and last frame. This will allow the player to query the recorder for the current duration for an in-progress recording. We already have a GetFramesWritten() function to get the total frames. It would then be optimal if the recorder saves the total frames and total duration to programinfo when a recording is completed.

Modified:

   mythtv/libs/libmyth/programinfo.cpp
   mythtv/libs/libmyth/programinfo.h
   mythtv/libs/libmyth/programtypes.h
   mythtv/libs/libmythtv/decoderbase.cpp
   mythtv/libs/libmythtv/decoderbase.h



More information about the mythtv-commits mailing list