webrtc_data_channel: Reference data channel object in _on_data_channel_cb() 48/271448/2
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 21 Feb 2022 10:15:45 +0000 (19:15 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 22 Feb 2022 01:17:54 +0000 (10:17 +0900)
It is added due to the GStreamer update to 1.20 that includes patches below.
: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2186
Otherwise, some warning messages occur when releasing data channels.

[Version] 0.3.58
[Issue Type] Update

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

index d72a2ea8854537c68fe66fefc40a0ebba55e431a..5ff4d0c2cc9ef0b0690de1c2b20038a94949de80 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.3.57
+Version:    0.3.58
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 7e0899bcea1043e1a04a157fd25260f4501e559a..c8e1f11f9f8264721e6de3c62fe90fc47001b3ea 100644 (file)
@@ -143,7 +143,7 @@ void _webrtcbin_on_data_channel_cb(GstElement *webrtcbin, GObject *data_channel,
        g_mutex_init(&channel->mutex);
        g_mutex_lock(&channel->mutex);
 
-       channel->channel = data_channel;
+       channel->channel = gst_object_ref(data_channel);
 
        LOG_INFO("channel[%p, %p, %s] user_data[%p]", channel, data_channel, GST_OBJECT_NAME(data_channel), user_data);