diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index a6773ba2ff..55f2b0053d 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 a2b4872c31..02b4309922 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 {