webrtc_source_simulcast: Add missing gst_object_unref() 53/318853/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 10 Oct 2024 03:22:04 +0000 (12:22 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 10 Oct 2024 03:24:32 +0000 (12:24 +0900)
It should be done because of the increased ref. count
by calling gst_element_get_parent().

[Version] 1.1.34
[Issue Type] Improvement

Change-Id: Ic75792686402c547818f34a97bd36e767a0b025f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_source_simulcast.c

index 88c142c880ffe3fb9c409d501306509fe8724a53..4df014859c8ffa79ec858d1b5d8e9f0b08e540d2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    1.1.33
+Version:    1.1.34
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index cf690dbba941fa45bef3c3f2a6606143973425fe..16354d17530d324e0202b69710d6df7ad9b2fe70 100644 (file)
@@ -316,8 +316,10 @@ void _encoding_slot_destroy_cb(gpointer data)
 
        __remove_probe_from_pad_for_active(encoding);
 
-       if ((parent = GST_ELEMENT(gst_element_get_parent(encoding->bin))))
+       if ((parent = GST_ELEMENT(gst_element_get_parent(encoding->bin)))) {
                gst_bin_remove(GST_BIN(parent), GST_ELEMENT(encoding->bin));
+               gst_object_unref(parent);
+       }
 
        g_free(encoding);
 }