v4l2object: Add gst_v4l2_object_open_shared()

https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
Nicolas Dufresne 2013-11-28 17:09:26 -05:00
parent cf32d6ec43
commit 080f58166e
2 changed files with 15 additions and 0 deletions

View file

@ -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)
{ {

View file

@ -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 */