summaryrefslogtreecommitdiff
path: root/movie.c
diff options
context:
space:
mode:
Diffstat (limited to 'movie.c')
-rwxr-xr-xmovie.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/movie.c b/movie.c
index 8cd7a4b..05ebb55 100755
--- a/movie.c
+++ b/movie.c
@@ -500,7 +500,12 @@ void cMovie::setLengthVDR() {
FILE *f = fopen(file, "r");
if (f) {
fseek(f, 0, SEEK_END);
- Length = ftell(f) / 200;
+ if (OldRecording) {
+ Length = ftell(f) / 200;
+ } else {
+ Length = 30000; //FIXME urgent
+ }
+ dsyslog ("[vdrrip] length: %i ",Length);
fclose(f);
} else {
dsyslog("[vdrrip] could not open file %s !", file);