Fixed getting the file size and number of frames of ongoing recordings

This commit is contained in:
Klaus Schmidinger
2012-09-06 10:07:25 +02:00
parent f7a1954fe3
commit 2ceb19e566
3 changed files with 9 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.h 2.35 2012/09/05 11:25:33 kls Exp $
* $Id: recording.h 2.36 2012/09/06 09:59:11 kls Exp $
*/
#ifndef __RECORDING_H
@@ -280,7 +280,6 @@ private:
static void AddToIndexList(const cIndexFile *IndexFile);
static void RemoveFromIndexList(const cIndexFile *IndexFile);
static bool IsInIndexList(const cIndexFile *IndexFile);
static cString IndexFileName(const char *FileName, bool IsPesRecording);
void ConvertFromPes(tIndexTs *IndexTs, int Count);
void ConvertToPes(tIndexTs *IndexTs, int Count);
bool CatchUp(int Index = -1);
@@ -300,6 +299,7 @@ public:
static int GetLength(const char *FileName, bool IsPesRecording = false);
///< Calculates the recording length (number of frames) without actually reading the index file.
///< Returns -1 in case of error.
static cString IndexFileName(const char *FileName, bool IsPesRecording);
};
class cFileName {