[vdr] [feature request] recording length computation and storage

Steffen Barszus steffenbpunkt at googlemail.com
Tue Aug 23 18:54:49 CEST 2011


On Sun, 21 Aug 2011 15:45:18 +0200
Klaus Schmidinger <Klaus.Schmidinger at tvdr.de> wrote:
> On 19.08.2011 23:56, Steffen Barszus wrote:
> > It's slow since it needs to iterate through all recordings
> > and check file size of the index file (thats what i understand from
> > Klaus comment), so divide that by number of frames of the recording
> > and thats it. the directory scanner is anyway doing the same
> > (iterating the video directory and pick up necessary information).
> > So it wouldn't add anything substantially.
> 
> Would the attached patch work for you?
> Line numbers may be off a little.

Tested and looks good to me. Shows the correct result, where possible,
no delay in getting the result and doesnt crash on strange recordings. 

Perfect :) 

Would love to see this in next developer version :)



More information about the vdr mailing list