summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-06-22 10:11:59 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-06-22 10:11:59 +0200
commit7ade39597ac83a03395e86a8276fbb6dec6a6a2f (patch)
tree11cb4137aee8c97844a03efcaea242f5983d333d /dvbplayer.c
parent8a9898ea4f5d1ad71d3ab13b08484bd6ef3a72c8 (diff)
downloadvdr-7ade39597ac83a03395e86a8276fbb6dec6a6a2f.tar.gz
vdr-7ade39597ac83a03395e86a8276fbb6dec6a6a2f.tar.bz2
Activated cutting
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index 10fdf4b5..f18eb84e 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 1.1 2002/06/16 10:59:45 kls Exp $
+ * $Id: dvbplayer.c 1.2 2002/06/22 10:11:59 kls Exp $
*/
#include "dvbplayer.h"
@@ -13,22 +13,6 @@
#include "ringbuffer.h"
#include "thread.h"
-// --- ReadFrame -------------------------------------------------------------
-
-int ReadFrame(int f, uchar *b, int Length, int Max)
-{
- if (Length == -1)
- Length = Max; // this means we read up to EOF (see cIndex)
- else if (Length > Max) {
- esyslog("ERROR: frame larger than buffer (%d > %d)", Length, Max);
- Length = Max;
- }
- int r = safe_read(f, b, Length);
- if (r < 0)
- LOG_ERROR;
- return r;
-}
-
// --- cBackTrace ----------------------------------------------------------
#define AVG_FRAME_SIZE 15000 // an assumption about the average frame size
@@ -91,9 +75,6 @@ int cBackTrace::Get(bool Forward)
// (must be larger than MINVIDEODATA - see remux.h)
#define VIDEOBUFSIZE MEGABYTE(1)
-// The maximum size of a single frame:
-#define MAXFRAMESIZE KILOBYTE(192)
-
// The number of frames to back up when resuming an interrupted replay session:
#define RESUMEBACKUP (10 * FRAMESPERSEC)