/
0152-configure-add-v4l2request-support.patch
85 lines (82 loc) · 2.75 KB
/
0152-configure-add-v4l2request-support.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
diff -Naur mythtv-master-20201010-g68e85b9-old/mythtv/configure mythtv-master-20201010-g68e85b9-new/mythtv/configure
--- mythtv-master-20201010-g68e85b9-old/mythtv/configure 2020-10-10 16:07:59.066666666 +0200
+++ mythtv-master-20201010-g68e85b9-new/mythtv/configure 2020-10-10 16:08:00.949999999 +0200
@@ -126,6 +126,7 @@
--disable-ceton disable support for Ceton cards
--disable-satip disable support for Sat>IP
--disable-v4l2 disable Video4Linux support
+ --enable-v4l2request enable Video4Linux V4l2-request support
--disable-ivtv disable ivtv support (PVR-x50) req. v4l2 support
--disable-hdpvr disable HD-PVR support
--disable-dvb disable DVB support
@@ -1953,7 +1954,6 @@
wma_freqs
wmv2dsp
"
-
MYTHTV_CONFIG_LIST='
backend
bdjava
@@ -1992,6 +1992,7 @@
taglib
v4l2
v4l2prime
+ v4l2request
v4l1
valgrind
x11
@@ -2790,6 +2791,7 @@
enable v4l1
enable v4l2
enable v4l2prime
+disable v4l2request
enable x11
disable indevs
enable libfftw3
@@ -4754,6 +4756,7 @@
disable v4l1
disable v4l2
disable v4l2prime
+ disable v4l2request
disable x11
# Workaround compile errors from missing u_int/uint def
CFLAGS=`echo $CFLAGS | sed 's/-D_POSIX_C_SOURCE=200112//'`
@@ -4804,6 +4807,7 @@
disable v4l1
disable v4l2
disable v4l2prime
+ disable v4l2request
enable windows
disable x11
disable qtdbus
@@ -7255,6 +7259,10 @@
ffopts="$ffopts --enable-lto"
fi
+if enabled v4l2request; then
+ ffopts="$ffopts --enable-v4l2_request --enable-libdrm --enable-libudev"
+fi
+
ffmpeg_extra_cflags="$extra_cflags -w"
## Call FFmpeg configure here
@@ -7466,7 +7474,7 @@
fi
echo "VAAPI support ${vaapi-no}"
echo "DRM support ${drm-no}"
- echo "Video4Linux codecs ${v4l2-no} (DRM ${v4l2prime-no})"
+ echo "Video4Linux codecs ${v4l2-no} (DRM:${v4l2prime-no} v4l2-request:${v4l2request-no})"
echo "MMAL decoder support ${mmal-no}"
echo "OpenGL ${opengl-no} (OpenGLES ${opengles-no})"
echo "EGL support ${egl-no}"
diff -Naur mythtv-old/mythtv/libs/libmythtv/libmythtv.pro mythtv-new/mythtv/libs/libmythtv/libmythtv.pro
--- mythtv-old/mythtv/libs/libmythtv/libmythtv.pro 2021-01-02 17:30:51.763329032 +0100
+++ mythtv-new/mythtv/libs/libmythtv/libmythtv.pro 2021-01-02 17:29:22.353329061 +0100
@@ -514,6 +514,10 @@
DEFINES += USING_V4L2PRIME
}
+ using_v4l2request {
+ DEFINES += USING_V4L2_REQUEST
+ }
+
using_vdpau:using_x11 {
DEFINES += USING_VDPAU
HEADERS += decoders/mythvdpaucontext.h decoders/mythvdpauhelper.h