mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-28 17:25:05 +00:00
v4l2: define V4L2_FIELD_INTERLACED_{TB,BT} if not available in header
Older kernels don't have these, and there's no easy way to check for the existance of enums that doesn't involve a configure check, so just define these if the V4L2_CAP_VIDEO_OUTPUT_OVERLAY define is not there, which was added in the same commit as the TB/BT enum. Fixes compilation on CentOS 5. https://bugzilla.gnome.org/show_bug.cgi?id=639339
This commit is contained in:
parent
0520052540
commit
9dcb60822f
|
@ -40,6 +40,14 @@
|
|||
#include "v4l2_calls.h"
|
||||
#include "gst/gst-i18n-plugin.h"
|
||||
|
||||
/* videodev2.h is not versioned and we can't easily check for the presence
|
||||
* of enum values at compile time, but the V4L2_CAP_VIDEO_OUTPUT_OVERLAY define
|
||||
* was added in the same commit as V4L2_FIELD_INTERLACED_{TB,BT} (b2787845) */
|
||||
#ifndef V4L2_CAP_VIDEO_OUTPUT_OVERLAY
|
||||
#define V4L2_FIELD_INTERLACED_TB 8
|
||||
#define V4L2_FIELD_INTERLACED_BT 9
|
||||
#endif
|
||||
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (v4l2_debug);
|
||||
#define GST_CAT_DEFAULT v4l2_debug
|
||||
|
|
|
@ -41,6 +41,13 @@
|
|||
|
||||
#include "gst/gst-i18n-plugin.h"
|
||||
|
||||
/* videodev2.h is not versioned and we can't easily check for the presence
|
||||
* of enum values at compile time, but the V4L2_CAP_VIDEO_OUTPUT_OVERLAY define
|
||||
* was added in the same commit as V4L2_FIELD_INTERLACED_{TB,BT} (b2787845) */
|
||||
#ifndef V4L2_CAP_VIDEO_OUTPUT_OVERLAY
|
||||
#define V4L2_FIELD_INTERLACED_TB 8
|
||||
#define V4L2_FIELD_INTERLACED_BT 9
|
||||
#endif
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (v4l2_debug);
|
||||
#define GST_CAT_DEFAULT v4l2_debug
|
||||
|
|
Loading…
Reference in a new issue