[gstreamer1.0-plugin-dvbmediasink] apply patch files.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / enigma2 / enigma2-transtreamproxy / ext-pid-patch.diff
1 diff --git a/configure.ac b/configure.ac
2 index dfe149a..4a9f975 100644
3 --- a/configure.ac
4 +++ b/configure.ac
5 @@ -32,6 +32,18 @@ AC_SUBST(PLATFORM)
6  AC_SUBST(INCPATH)
7  
8  # Checks for typedefs, structures, and compiler characteristics.
9 +AC_SUBST(USE_EXT_PID)
10 +
11 +AC_ARG_ENABLE([ext-pid],
12 +  [AS_HELP_STRING([--enable-ext-pid],
13 +  [enable extend pid (default is no)])],
14 +  [use_ext_pid=$enableval],
15 +  [use_ext_pid=no])
16 +
17 +if test "$use_ext_pid" = "yes"; then
18 +       AC_DEFINE([HAVE_EXT_PID], [1], [Define to 1 if support extend pid.])
19 +       USE_EXT_PID=1
20 +fi
21  
22  # Checks for library functions.
23  
24 diff --git a/src/Encoder.h b/src/Encoder.h
25 index 5831482..1075b90 100644
26 --- a/src/Encoder.h
27 +++ b/src/Encoder.h
28 @@ -8,6 +8,8 @@
29  #ifndef ENCODER_H_
30  #define ENCODER_H_
31  
32 +#include "config.h"
33 +
34  #include <string>
35  
36  #include "3rdparty/trap.h"
37 @@ -30,9 +32,16 @@ private:
38  
39  public:
40         enum {
41 -               IOCTL_SET_VPID   = 1,
42 -               IOCTL_SET_APID   = 2,
43 +#ifdef HAVE_EXT_PID
44 +               IOCTL_SET_VPID   = 11,
45 +               IOCTL_SET_APID   = 12,
46 +               IOCTL_SET_PMTPID = 13,
47 +#else
48 +               IOCTL_SET_VPID   = 1,
49 +               IOCTL_SET_APID   = 2,
50                 IOCTL_SET_PMTPID = 3,
51 +#endif
52 +
53                 IOCTL_START_TRANSCODING = 100,
54                 IOCTL_STOP_TRANSCODING  = 200
55         };