summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-18 14:26:08 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-18 14:26:08 +0200
commit82725f53b5c23d3436f3b71845a1b61447b9780f (patch)
treed66862aae412097b347625bca3cc415a4ddb6e45 /dvbapi.c
parentbdccbbe93e9729944787d3158bee7a755d3bf286 (diff)
downloadvdr-82725f53b5c23d3436f3b71845a1b61447b9780f.tar.gz
vdr-82725f53b5c23d3436f3b71845a1b61447b9780f.tar.bz2
Adopted the cutting fix to version 1.0.3 and rearranged setting Length
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dvbapi.c b/dvbapi.c
index bb2d13aa..c1f416eb 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.177 2002/05/18 14:03:17 kls Exp $
+ * $Id: dvbapi.c 1.178 2002/05/18 14:26:08 kls Exp $
*/
#include "dvbapi.h"
@@ -1532,9 +1532,10 @@ void cCuttingBuffer::Action(void)
error = "ReadFrame";
break;
}
- if (len != Length)
+ if (len != Length) {
CurrentFileNumber = 0; // this re-syncs in case the frame was larger than the buffer
- Length = len;
+ Length = len;
+ }
}
else {
error = "fromFile";