|
|
0dd771 |
From fa21c0bb253213c9dc48ce72faaf7090dc8a3554 Mon Sep 17 00:00:00 2001
|
|
|
0dd771 |
From: Colin Walters <walters@verbum.org>
|
|
|
0dd771 |
Date: Thu, 2 May 2013 16:16:46 -0400
|
|
|
0dd771 |
Subject: [PATCH] sys/v4l2: Some blind compilation fixes
|
|
|
0dd771 |
|
|
|
0dd771 |
---
|
|
|
0dd771 |
sys/v4l2/gstv4l2bufferpool.c | 1 -
|
|
|
0dd771 |
sys/v4l2/v4l2_calls.c | 12 ++++--------
|
|
|
0dd771 |
2 files changed, 4 insertions(+), 9 deletions(-)
|
|
|
0dd771 |
|
|
|
0dd771 |
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c
|
|
|
0dd771 |
index a0b4c84..3916815 100644
|
|
|
0dd771 |
--- a/sys/v4l2/gstv4l2bufferpool.c
|
|
|
0dd771 |
+++ b/sys/v4l2/gstv4l2bufferpool.c
|
|
|
0dd771 |
@@ -182,7 +182,6 @@ gst_v4l2_buffer_new (GstV4l2BufferPool * pool, guint index, GstCaps * caps)
|
|
|
0dd771 |
GST_LOG_OBJECT (pool->v4l2elem, " MMAP offset: %u",
|
|
|
0dd771 |
ret->vbuffer.m.offset);
|
|
|
0dd771 |
GST_LOG_OBJECT (pool->v4l2elem, " length: %u", ret->vbuffer.length);
|
|
|
0dd771 |
- GST_LOG_OBJECT (pool->v4l2elem, " input: %u", ret->vbuffer.input);
|
|
|
0dd771 |
|
|
|
0dd771 |
ret->mmap_length = ret->vbuffer.length;
|
|
|
0dd771 |
data = (guint8 *) v4l2_mmap (0, ret->vbuffer.length,
|
|
|
0dd771 |
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
|
|
|
0dd771 |
index 309bfb6..ee3ff9f 100644
|
|
|
0dd771 |
--- a/sys/v4l2/v4l2_calls.c
|
|
|
0dd771 |
+++ b/sys/v4l2/v4l2_calls.c
|
|
|
0dd771 |
@@ -53,14 +53,6 @@
|
|
|
0dd771 |
|
|
|
0dd771 |
#include "gst/gst-i18n-plugin.h"
|
|
|
0dd771 |
|
|
|
0dd771 |
-/* Those are ioctl calls */
|
|
|
0dd771 |
-#ifndef V4L2_CID_HCENTER
|
|
|
0dd771 |
-#define V4L2_CID_HCENTER V4L2_CID_HCENTER_DEPRECATED
|
|
|
0dd771 |
-#endif
|
|
|
0dd771 |
-#ifndef V4L2_CID_VCENTER
|
|
|
0dd771 |
-#define V4L2_CID_VCENTER V4L2_CID_VCENTER_DEPRECATED
|
|
|
0dd771 |
-#endif
|
|
|
0dd771 |
-
|
|
|
0dd771 |
GST_DEBUG_CATEGORY_EXTERN (v4l2_debug);
|
|
|
0dd771 |
#define GST_CAT_DEFAULT v4l2_debug
|
|
|
0dd771 |
|
|
|
0dd771 |
@@ -294,8 +286,12 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
|
|
|
0dd771 |
break;
|
|
|
0dd771 |
case V4L2_CID_HFLIP:
|
|
|
0dd771 |
case V4L2_CID_VFLIP:
|
|
|
0dd771 |
+#ifdef V4L2_CID_HCENTER
|
|
|
0dd771 |
case V4L2_CID_HCENTER:
|
|
|
0dd771 |
+#endif
|
|
|
0dd771 |
+#ifdef V4L2_CID_VCENTER
|
|
|
0dd771 |
case V4L2_CID_VCENTER:
|
|
|
0dd771 |
+#endif
|
|
|
0dd771 |
#ifdef V4L2_CID_PAN_RESET
|
|
|
0dd771 |
case V4L2_CID_PAN_RESET:
|
|
|
0dd771 |
#endif
|
|
|
0dd771 |
--
|
|
|
0dd771 |
1.7.1
|
|
|
0dd771 |
|