summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-07-22 09:11:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-07-22 09:11:09 +0200
commite62cf7d9e4ae4496ee67f1f348e2549bdc43026a (patch)
tree340a3a3fcd7a12f8e1b4debb605078b11b9a8337
parentce3046c9d0e1b6c6ad579d7cefa9bf7a5a91baba (diff)
downloadvdr-e62cf7d9e4ae4496ee67f1f348e2549bdc43026a.tar.gz
vdr-e62cf7d9e4ae4496ee67f1f348e2549bdc43026a.tar.bz2
Adapted to driver version 0.6
-rw-r--r--HISTORY1
-rw-r--r--dvbapi.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 5406d8a5..838cc65f 100644
--- a/HISTORY
+++ b/HISTORY
@@ -82,3 +82,4 @@ Video Disk Recorder Revision History
converted to underscores.
- The polarization can now be given in uppercase or lowercase characters in
channels.conf.
+- Fixed buffer initialization to work with DVB driver version 0.6.
diff --git a/dvbapi.c b/dvbapi.c
index b6f34143..a9673a7a 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.14 2000/07/16 15:28:50 kls Exp $
+ * $Id: dvbapi.c 1.15 2000/07/21 13:18:02 kls Exp $
*/
#include "dvbapi.h"
@@ -818,8 +818,8 @@ cReplayBuffer::cReplayBuffer(int *OutFile, const char *FileName)
// All recordings start with '1':
fileNumber = 1; //TODO what if it doesn't start with '1'???
//XXX hack to make the video device go into 'replaying' mode:
- char dummy;
- write(*OutFile, &dummy, sizeof(dummy));
+ char *dummy = "AV"; // must be "AV" to make the driver go into AV_PES mode!
+ write(*OutFile, dummy, strlen(dummy));
}
cReplayBuffer::~cReplayBuffer()