diff --git a/sys/mediafoundation/gstmfsourceobject.c b/sys/mediafoundation/gstmfsourceobject.c index 1a3ca330d5..aa3b1ffc78 100644 --- a/sys/mediafoundation/gstmfsourceobject.c +++ b/sys/mediafoundation/gstmfsourceobject.c @@ -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);