mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
mfsourceobject: Store selected device path, name and index
Update path, name and index with selected device so that checked by get_property() after constructed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1236>
This commit is contained in:
parent
f3d6026ad2
commit
ba45e3f82b
1 changed files with 10 additions and 1 deletions
|
@ -313,9 +313,18 @@ gst_mf_source_object_thread_func (GstMFSourceObject * self)
|
|||
}
|
||||
}
|
||||
|
||||
if (target)
|
||||
if (target) {
|
||||
self->opend = klass->open (self, target->handle);
|
||||
|
||||
g_free (priv->device_path);
|
||||
priv->device_path = g_strdup (target->path);
|
||||
|
||||
g_free (priv->device_name);
|
||||
priv->device_name = g_strdup (target->name);
|
||||
|
||||
priv->device_index = target->index;
|
||||
}
|
||||
|
||||
if (activate_list)
|
||||
g_list_free_full (activate_list,
|
||||
(GDestroyNotify) gst_mf_device_activate_free);
|
||||
|
|
Loading…
Reference in a new issue