Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Up-To-Date Astra 19.2E Radio channel list.



Hi Axel,

At 19:35 07.10.2001 +0200, you wrote:
>[...]


>a RADIO-Recording-function wold be realy great.... :-)

With my patch - which is basically Klaus' test code already delivered
"commented out" in the code - VDR is able to record radio programs.
The patch works for stations whose VPID is set to 0x1FFF (8191) (which
usually is true for radio only stations).

Without that patch, VDR will only create a 0-byte-file and do an emergency 
exit.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

diff -ruN VDR/remux.c VDR_radio/remux.c
--- VDR/remux.c Sun Jun 24 18:37:23 2001
+++ VDR_radio/remux.c   Sun Aug 19 11:50:47 2001
@@ -538,6 +538,15 @@
    return Result ? resultBuffer : NULL;
  XXX*/

+  /********* PATCH for recording radio stations **********/
+  if (vPid == 0x1FFF)
+  {
+     *PictureType = I_FRAME;
+     Result = resultDelivered = resultCount;
+     return Result ? resultBuffer : NULL;
+  }
+  /********* Radio station recording patch END  **********/
+
    // Check if we're getting anywhere here:

    if (!synced && skipped >= 0) {

Ciao und Servus,

         Michael



Home | Main Index | Thread Index