summaryrefslogtreecommitdiffstats
path: root/patches/gst-plugins-good-0.10.31/0003-remove-V4L2_CID_HCENTER-V4L2_CID_VCENTER-usage.patch
blob: 5a8a0743199a95568024680bf497c1f54cae0819 (plain)
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
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Tue, 17 Dec 2013 15:36:39 +0100
Subject: [PATCH] remove V4L2_CID_HCENTER/V4L2_CID_VCENTER usage

They have been deprecated for a long time and since v3.9 building fails
with:

v4l2_calls.c:58:26: error: 'V4L2_CID_HCENTER_DEPRECATED' undeclared (first use in this function)
 #define V4L2_CID_HCENTER V4L2_CID_HCENTER_DEPRECATED
                          ^
v4l2_calls.c:297:12: note: in expansion of macro 'V4L2_CID_HCENTER'
       case V4L2_CID_HCENTER:
            ^
v4l2_calls.c:58:26: note: each undeclared identifier is reported only once for each function it appears in
 #define V4L2_CID_HCENTER V4L2_CID_HCENTER_DEPRECATED
                          ^
v4l2_calls.c:297:12: note: in expansion of macro 'V4L2_CID_HCENTER'
       case V4L2_CID_HCENTER:
            ^
v4l2_calls.c:61:26: error: 'V4L2_CID_VCENTER_DEPRECATED' undeclared (first use in this function)
 #define V4L2_CID_VCENTER V4L2_CID_VCENTER_DEPRECATED
                          ^
v4l2_calls.c:298:12: note: in expansion of macro 'V4L2_CID_VCENTER'
       case V4L2_CID_VCENTER:
            ^
make[4]: *** [libgstvideo4linux2_la-v4l2_calls.lo] Error 1

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 sys/v4l2/v4l2_calls.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
index 309bfb6..47c2f46 100644
--- a/sys/v4l2/v4l2_calls.c
+++ b/sys/v4l2/v4l2_calls.c
@@ -53,14 +53,6 @@
 
 #include "gst/gst-i18n-plugin.h"
 
-/* Those are ioctl calls */
-#ifndef V4L2_CID_HCENTER
-#define V4L2_CID_HCENTER V4L2_CID_HCENTER_DEPRECATED
-#endif
-#ifndef V4L2_CID_VCENTER
-#define V4L2_CID_VCENTER V4L2_CID_VCENTER_DEPRECATED
-#endif
-
 GST_DEBUG_CATEGORY_EXTERN (v4l2_debug);
 #define GST_CAT_DEFAULT v4l2_debug
 
@@ -294,8 +286,6 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
         break;
       case V4L2_CID_HFLIP:
       case V4L2_CID_VFLIP:
-      case V4L2_CID_HCENTER:
-      case V4L2_CID_VCENTER:
 #ifdef V4L2_CID_PAN_RESET
       case V4L2_CID_PAN_RESET:
 #endif