fixup! Apply GStreamer 1.22.0 into Tizen 70/287470/1
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 30 Jan 2023 09:24:41 +0000 (18:24 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 30 Jan 2023 09:27:05 +0000 (18:27 +0900)
A crash issue related to webrtcbin is fixed.

Change-Id: Ie91cad999bb7ec1168c98cb7f5179d81e23c60ec

subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c

index afa1d05..607195f 100644 (file)
@@ -1572,7 +1572,7 @@ _update_and_notify_ice_gathering_state (GstWebRTCBin * webrtc, GstWebRTCICEGathe
   GstWebRTCICEGatheringState old_state = webrtc->ice_gathering_state;
 
   if (state != webrtc->ice_gathering_state) {
-    gchar *old_s, *new_s;
+    const gchar *old_s, *new_s;
 
     old_s = _enum_value_to_string (GST_TYPE_WEBRTC_ICE_GATHERING_STATE,
         old_state);
@@ -1580,8 +1580,6 @@ _update_and_notify_ice_gathering_state (GstWebRTCBin * webrtc, GstWebRTCICEGathe
         state);
     GST_INFO_OBJECT (webrtc, "ICE gathering state change from %s(%u) to %s(%u)",
         old_s, old_state, new_s, state);
-    g_free (old_s);
-    g_free (new_s);
 
     webrtc->ice_gathering_state = state;
     PC_UNLOCK (webrtc);