summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-02-03 16:22:05 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-02-03 16:22:05 +0100
commitda56a94dbf6fbc52f6cb0a16f2c4e3e75c4ae249 (patch)
treea30a0ce523a9cc1dfc3223da49b1a794f4bd4b42 /remux.c
parentdeb9f887106521797cacd77f1ae48de1d7b3277e (diff)
downloadvdr-da56a94dbf6fbc52f6cb0a16f2c4e3e75c4ae249.tar.gz
vdr-da56a94dbf6fbc52f6cb0a16f2c4e3e75c4ae249.tar.bz2
Special VPIDs to allow recording radio channels
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/remux.c b/remux.c
index 2eb97b50..99a64408 100644
--- a/remux.c
+++ b/remux.c
@@ -8,7 +8,7 @@
* the Linux DVB driver's 'tuxplayer' example and were rewritten to suit
* VDR's needs.
*
- * $Id: remux.c 1.7 2002/02/02 12:54:30 kls Exp $
+ * $Id: remux.c 1.8 2002/02/03 16:20:37 kls Exp $
*/
/* The calling interface of the 'cRemux::Process()' function is defined
@@ -555,6 +555,17 @@ XXX*/
return Result ? resultBuffer : NULL;
XXX*/
+ // Special VPID case to enable recording radio channels:
+
+ if (vPid == 0 || vPid == 1 || vPid == 0x1FFF) {
+ // XXX actually '0' should be enough, but '1' must be used with encrypted channels (driver bug?)
+ // XXX also allowing 0x1FFF to not break Michael Paar's original patch,
+ // XXX but it would probably be best to only use '0'
+ *PictureType = I_FRAME;
+ Result = resultDelivered = resultCount;
+ return Result ? resultBuffer : NULL;
+ }
+
// Check if we're getting anywhere here:
if (!synced && skipped >= 0) {