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>
}
}
- 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);