diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-06 10:07:25 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-09-06 10:07:25 +0200 |
commit | 2ceb19e566c26a42b3d69244609772082f9a7997 (patch) | |
tree | e2fa74051472f18aaeb2ad65639fd72bc9e9f06d /recording.c | |
parent | f7a1954fe3f64da98c0ee7a638be4e51d5b7b227 (diff) | |
download | vdr-2ceb19e566c26a42b3d69244609772082f9a7997.tar.gz vdr-2ceb19e566c26a42b3d69244609772082f9a7997.tar.bz2 |
Fixed getting the file size and number of frames of ongoing recordings
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c index de010440..9c80505e 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 2.59 2012/09/05 11:45:55 kls Exp $ + * $Id: recording.c 2.60 2012/09/06 09:57:31 kls Exp $ */ #include "recording.h" @@ -1067,7 +1067,7 @@ int cRecording::NumFrames(void) const { if (numFrames < 0) { int nf = cIndexFile::GetLength(FileName(), IsPesRecording()); - if (time(NULL) - LastModifiedTime(FileName()) < MININDEXAGE) + if (time(NULL) - LastModifiedTime(cIndexFile::IndexFileName(FileName(), IsPesRecording())) < MININDEXAGE) return nf; // check again later for ongoing recordings numFrames = nf; } @@ -1086,7 +1086,7 @@ int cRecording::FileSizeMB(void) const { if (fileSizeMB < 0) { int fs = DirSizeMB(FileName()); - if (time(NULL) - LastModifiedTime(FileName()) < MININDEXAGE) + if (time(NULL) - LastModifiedTime(cIndexFile::IndexFileName(FileName(), IsPesRecording())) < MININDEXAGE) return fs; // check again later for ongoing recordings fileSizeMB = fs; } |