v4l2object: make IO_MODE enum public
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 28 Nov 2013 21:59:59 +0000 (16:59 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 10 Jan 2014 22:13:22 +0000 (17:13 -0500)
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
sys/v4l2/gstv4l2object.h

index a6773ba2ff57d148739242b83d009bd4b9f71da5..55f2b0053dc4e1d08f72e46cba83d3cef8de98df 100644 (file)
@@ -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;
index a2b4872c31ad1dbb7fb0b2b2d6787af5a28a5e5f..02b4309922097d1a0462252ccd86f4b5a1c75576 100644 (file)
@@ -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 {