Commit 080f5816 authored by Nicolas Dufresne's avatar Nicolas Dufresne

v4l2object: Add gst_v4l2_object_open_shared()

https://bugzilla.gnome.org/show_bug.cgi?id=720568
parent cf32d6ec
...@@ -919,6 +919,20 @@ gst_v4l2_object_open (GstV4l2Object * v4l2object) ...@@ -919,6 +919,20 @@ gst_v4l2_object_open (GstV4l2Object * v4l2object)
return TRUE; return TRUE;
} }
gboolean
gst_v4l2_object_open_shared (GstV4l2Object * v4l2object, GstV4l2Object * other)
{
gboolean ret;
ret = gst_v4l2_dup (v4l2object, other);
#ifdef HAVE_XVIDEO
gst_v4l2_video_overlay_start (v4l2object);
#endif
return ret;
}
gboolean gboolean
gst_v4l2_object_close (GstV4l2Object * v4l2object) gst_v4l2_object_close (GstV4l2Object * v4l2object)
{ {
......
...@@ -229,6 +229,7 @@ gboolean gst_v4l2_object_get_property_helper (GstV4l2Object *v4l2objec ...@@ -229,6 +229,7 @@ gboolean gst_v4l2_object_get_property_helper (GstV4l2Object *v4l2objec
GParamSpec * pspec); GParamSpec * pspec);
/* open/close */ /* open/close */
gboolean gst_v4l2_object_open (GstV4l2Object *v4l2object); gboolean gst_v4l2_object_open (GstV4l2Object *v4l2object);
gboolean gst_v4l2_object_open_shared (GstV4l2Object *v4l2object, GstV4l2Object *other);
gboolean gst_v4l2_object_close (GstV4l2Object *v4l2object); gboolean gst_v4l2_object_close (GstV4l2Object *v4l2object);
/* probing */ /* probing */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment