no need to patch libdvb for analogtv

Message ID 200507071749.33474.zzam@gmx.de
State New
Headers

Commit Message

Matthias Schwarzott July 7, 2005, 3:49 p.m. UTC
  Hi Andreas!
I found out that there is no need to patch libdvb to be able to use analogtv.

The function get_pes with parameter pes_in_ts can be replaced by the function
kpes_to_ts resulting in exactly the same code be executed. The patch also 
applies to current cvs.

Greetings
  Matthias
  

Patch

--- analogtv-0.9.37/player-analogtv.c.orig	2005-07-07 16:32:50.000000000 +0200
+++ analogtv-0.9.37/player-analogtv.c	2005-07-07 16:36:30.000000000 +0200
@@ -28,7 +28,6 @@ 
 #include <sys/soundcard.h>
 
 #include <transform.h>
-extern void pes_in_ts(p2p *p);
 #undef MIN
 #undef MAX
 
@@ -828,7 +827,7 @@ 
                 pes++;
                 spes += r;
 
-                get_pes(buffer, r, &p2t, pes_in_ts); // PES -> TS
+                kpes_to_ts(&p2t, buffer, r);
               }
             }
           }
@@ -937,7 +936,7 @@ 
       spes += r;
 
       if (r > 0)
-        get_pes(buffer, r, &p2t, pes_in_ts); // PES -> TS
+        kpes_to_ts(&p2t, buffer, r); // PES -> TS
     }
   }