[mythtv-commits] mythtv/master commit: e4bccbc22 by Taylor Ralph (tralph)
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
New Revision: e4bccbc2291d3e30520ce00c60af94a2a18efb5b
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.
More information about the mythtv-commits