GNOME Bugzilla – Bug 722077
v4l2: compile error - 'V4L2_CAP_VIDEO_M2M_MPLANE' undeclared
Last modified: 2014-01-13 15:35:51 UTC
commit cf32d6ec broken compilation on Ubuntu quantal, glibc 2.15. commit cf32d6ec4344ead1da7f56373b5805c5477e7ded Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Thu Nov 28 17:07:05 2013 -0500 v4l2object: Implement gst_v4l2_dup() This will duplicated the FD from another object and copy over the probed res https://bugzilla.gnome.org/show_bug.cgi?id=720568 v4l2_calls.c: In function 'gst_v4l2_adjust_buf_type': v4l2_calls.c:487:46: error: 'V4L2_CAP_VIDEO_M2M_MPLANE' undeclared (first use in this function) v4l2_calls.c:487:46: note: each undeclared identifier is reported only once for each function it appears in make: *** [libgstvideo4linux2_la-v4l2_calls.lo] Error 1
commit b80e3a4690e88868439fe4d2a412369a2da20215 Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Mon Jan 13 09:14:00 2014 +0000 v4l2: fix build break using V4L2_CAP_VIDEO_M2M_MPLANE This may not be defined. Since the previous version used only the other define (V4L2_CAP_VIDEO_OUTPUT_MPLANE), fall back on this only when not available.
Thansk, we usually define the missing define, but this should work just right. We should consider a v4l2-compat.h, it's kind of tricky sine this API has no version.