[mythtv-commits] mythtv commit: r7327 by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Tue Sep 27 19:57:08 UTC 2005


      Author: danielk
        Date: 2005-09-27 19:57:08 +0000 (Tue, 27 Sep 2005)
New Revision: 7327
   Changeset: http://cvs.mythtv.org/trac/changeset/7327

Modified:

   trunk/mythtv/libs/libmythtv/tv_rec.cpp
   trunk/mythtv/libs/libmythtv/tv_rec.h

Log:

GetFramerate() fix + refactor.

GetFramerate() is currently caching the framerate from the
recorder, but this can cause filelength estimation problems
with DTVRecorders, where the framerate can change, after
this change the value is returned directly from the recorder.
The file length estimation can still be incorrect, so I added
a todo comment for it.

As for refactorings, this moves "inoverrecord" and 
"overrecordseconds" from the state variables section to
the program section, as they are specific to a program.
This also changes StartedRecording() and FinishedRecording()
to take a ProgramInfo. These should make with Issac's 
LiveTV changes easier, and also allow for a less-blocking
StartRecording() function when combined with the tuning
patch.






More information about the mythtv-commits mailing list