diff options
author | geronimo <geronimo013@gmx.de> | 2012-08-01 15:29:31 (GMT) |
---|---|---|
committer | geronimo <geronimo013@gmx.de> | 2012-08-01 15:29:31 (GMT) |
commit | cca6e883c8141c3a67c3c5b232ce0c9b18e7fd59 (patch) | |
tree | 7149351cb466316771ab0ce0bd4ea64b2ba17aa1 /libs/mediaScan/src/VdrRecording.cc | |
parent | 76c51473ee29a9103201618c8dbbc11fe9b7149e (diff) | |
download | cmp-cca6e883c8141c3a67c3c5b232ce0c9b18e7fd59.tar.gz cmp-cca6e883c8141c3a67c3c5b232ce0c9b18e7fd59.tar.bz2 |
added mediatypes for interlaced video and selective configuration of deepscan
Diffstat (limited to 'libs/mediaScan/src/VdrRecording.cc')
-rw-r--r-- | libs/mediaScan/src/VdrRecording.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libs/mediaScan/src/VdrRecording.cc b/libs/mediaScan/src/VdrRecording.cc index 10b6476..bf1eaab 100644 --- a/libs/mediaScan/src/VdrRecording.cc +++ b/libs/mediaScan/src/VdrRecording.cc @@ -30,6 +30,8 @@ #include <stdio.h> #define FILE_MASK "/%05d.ts" +static bool deepScanEnabled = true; + cVdrRecording::cVdrRecording(const cFile &File) : cAbstractMultiFileMovie(File, "video/mpeg", VdrRecording) { @@ -47,6 +49,16 @@ cVdrRecording::~cVdrRecording() { } +void cVdrRecording::EnableDeepScan(bool DoScan) +{ + deepScanEnabled = DoScan; +} + +bool cVdrRecording::NeedsFurtherScan(void) const +{ + return deepScanEnabled; +} + void cVdrRecording::Refresh(void) { size_t total = 0; @@ -69,11 +81,10 @@ void cVdrRecording::Refresh(void) SetSize(total); } -const char *cVdrRecording::FirstFile(void) +const char *cVdrRecording::FirstFile(void) const { if (!checkBuffer()) return NULL; - curFileNo = 1; - sprintf(buf, FILE_MASK, curFileNo); + sprintf(buf, FILE_MASK, 1); cFile *tmp = new cFile(KeyPath(), buf); const char *rv = NULL; |