1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Adopted the cutting fix to version 1.0.3 and rearranged setting Length

This commit is contained in:
Klaus Schmidinger 2002-05-18 14:26:08 +02:00
parent bdccbbe93e
commit 82725f53b5
2 changed files with 6 additions and 3 deletions

View File

@ -1291,6 +1291,8 @@ Video Disk Recorder Revision History
- Updated 'Premiere Sport 2' in channels.conf (thanks to Rudi Hofer). - Updated 'Premiere Sport 2' in channels.conf (thanks to Rudi Hofer).
- Fixed some function headers to make them compile with gcc 3.x (thanks to - Fixed some function headers to make them compile with gcc 3.x (thanks to
Gregoire Favre). Gregoire Favre).
- Fixed the cutting mechanism to make it re-sync in case a frame is larger than the
buffer (thanks to Sven Grothklags).
2002-05-18: Version 1.1.3 2002-05-18: Version 1.1.3

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "dvbapi.h"
@ -1532,9 +1532,10 @@ void cCuttingBuffer::Action(void)
error = "ReadFrame"; error = "ReadFrame";
break; break;
} }
if (len != Length) if (len != Length) {
CurrentFileNumber = 0; // this re-syncs in case the frame was larger than the buffer CurrentFileNumber = 0; // this re-syncs in case the frame was larger than the buffer
Length = len; Length = len;
}
} }
else { else {
error = "fromFile"; error = "fromFile";