From 7fd6dc08b975233c61c8f84b025f4b5f4c7edf22 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 28 Nov 2013 16:59:59 -0500 Subject: [PATCH] v4l2object: make IO_MODE enum public This is to allow adding a second io-mode property on M2M device like decoder so input and output can be controlled separatly. https://bugzilla.gnome.org/show_bug.cgi?id=720568 --- sys/v4l2/gstv4l2object.c | 3 +-- sys/v4l2/gstv4l2object.h | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index a6773ba..55f2b00 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -386,8 +386,7 @@ gst_v4l2_tv_norm_get_type (void) return v4l2_tv_norm; } -#define GST_TYPE_V4L2_IO_MODE (gst_v4l2_io_mode_get_type ()) -static GType +GType gst_v4l2_io_mode_get_type (void) { static GType v4l2_io_mode = 0; diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index a2b4872..02b4309 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -69,6 +69,9 @@ typedef struct _GstV4l2Xv GstV4l2Xv; G_BEGIN_DECLS +#define GST_TYPE_V4L2_IO_MODE (gst_v4l2_io_mode_get_type ()) +GType gst_v4l2_io_mode_get_type (void); + #define GST_V4L2_OBJECT(obj) (GstV4l2Object *)(obj) typedef enum { -- 2.7.4