Source: gst-plugins-good0.10
Version: 0.10.31-3+nmu1
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

There are now two issues:

In file included from /usr/include/gstreamer-0.10/gst/gst.h:49:0,
                 from /usr/include/gstreamer-0.10/gst/video/video.h:24,
                 from gstv4l2bufferpool.c:33:
gstv4l2bufferpool.c: In function 'gst_v4l2_buffer_new':
gstv4l2bufferpool.c:184:66: error: 'struct v4l2_buffer' has no member named 
'input'
   GST_LOG_OBJECT (pool->v4l2elem, "  input:     %u", ret->vbuffer.input);
                                                                  ^
It appears from head that the member input has been removed.

v4l2_calls.c: In function 'gst_v4l2_fill_lists':
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

These ioctls are now removed.

Two patches to work around problem are attached.

-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.10-3-parisc64-smp (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- ./sys/v4l2/gstv4l2bufferpool.c.save	2013-10-19 22:37:44.015077780 -0400
+++ ./sys/v4l2/gstv4l2bufferpool.c	2013-10-19 22:38:06.651290549 -0400
@@ -181,7 +181,7 @@
     GST_LOG_OBJECT (pool->v4l2elem, "  MMAP offset:  %u",
         ret->vbuffer.m.offset);
   GST_LOG_OBJECT (pool->v4l2elem, "  length:    %u", ret->vbuffer.length);
-  GST_LOG_OBJECT (pool->v4l2elem, "  input:     %u", ret->vbuffer.input);
+  /* GST_LOG_OBJECT (pool->v4l2elem, "  input:     %u", ret->vbuffer.input); */
 
   data = (guint8 *) v4l2_mmap (0, ret->vbuffer.length,
       PROT_READ | PROT_WRITE, MAP_SHARED, pool->video_fd,
--- ./sys/v4l2/v4l2_calls.c.save	2012-02-17 05:48:47.000000000 -0500
+++ ./sys/v4l2/v4l2_calls.c	2013-10-19 22:47:51.628821842 -0400
@@ -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 @@
         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

Reply via email to