mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
v4l2object: Add gst_v4l2_object_open_shared()
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
cf32d6ec43
commit
080f58166e
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||||
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 */
|
||||||
|
|
Loading…
Reference in a new issue