uritranscodebin: Free various props before being set

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8978>
This commit is contained in:
Doug Nazar 2025-05-13 19:37:59 -04:00
parent 38ca8ae156
commit 4fb0a06271

View File

@ -570,6 +570,7 @@ gst_uri_transcode_bin_set_property (GObject * object,
switch (prop_id) {
case PROP_PROFILE:
GST_OBJECT_LOCK (self);
gst_clear_object (&self->profile);
self->profile = g_value_dup_object (value);
GST_OBJECT_UNLOCK (self);
break;