From cca6e883c8141c3a67c3c5b232ce0c9b18e7fd59 Mon Sep 17 00:00:00 2001 From: geronimo Date: Wed, 1 Aug 2012 17:29:31 +0200 Subject: added mediatypes for interlaced video and selective configuration of deepscan --- libs/mediaScan/src/AbstractMultiFileMovie.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libs/mediaScan/src/AbstractMultiFileMovie.cc') diff --git a/libs/mediaScan/src/AbstractMultiFileMovie.cc b/libs/mediaScan/src/AbstractMultiFileMovie.cc index 7ff8b10..ee7121c 100644 --- a/libs/mediaScan/src/AbstractMultiFileMovie.cc +++ b/libs/mediaScan/src/AbstractMultiFileMovie.cc @@ -45,7 +45,7 @@ cAbstractMultiFileMovie::~cAbstractMultiFileMovie() free(buf); } -bool cAbstractMultiFileMovie::checkBuffer() +bool cAbstractMultiFileMovie::checkBuffer(void) const { if (!buf && bufSize) { buf = (char *) malloc(bufSize); @@ -53,12 +53,18 @@ bool cAbstractMultiFileMovie::checkBuffer() return buf != NULL; } +const char *cAbstractMultiFileMovie::KeyFile(void) const +{ + return FirstFile(); +} + size_t cAbstractMultiFileMovie::ReadChunk(char* Buf, size_t bufSize) { long rv = 0; const char *path = NULL; if (fd < 1) { + curFileNo = 1; path = FirstFile(); fd = open(path, O_RDONLY | O_LARGEFILE); if (fd < 1) { -- cgit v1.2.3