From 1e75e06a7c357ed022f01dba6d5bc9c8a2a7ce23 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sun, 25 Jun 2006 22:46:44 +0000 Subject: [PATCH] fix --- lib/dvb/decoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dvb/decoder.cpp b/lib/dvb/decoder.cpp index 8e172c8b..a6b0ccb2 100644 --- a/lib/dvb/decoder.cpp +++ b/lib/dvb/decoder.cpp @@ -782,7 +782,8 @@ RESULT eTSMPEGDecoder::showSinglePic(const char *filename) int vfd = open("/dev/dvb/adapter0/video0", O_RDWR); if (vfd > 0) { - int length = fseek(f, 0, SEEK_END); + fseek(f, 0, SEEK_END); + int length = ftell(f); unsigned char *buffer = new unsigned char[length*3+9]; if (ioctl(vfd, VIDEO_FAST_FORWARD, 1) < 0) eDebug("VIDEO_FAST_FORWARD failed (%m)"); -- 2.30.2