webrtc: Add null check and remove unreachable code 81/289781/2 accepted/tizen/unified/20230320.164214 accepted/tizen/unified/20230321.035421
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 14 Mar 2023 08:37:23 +0000 (17:37 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 14 Mar 2023 08:39:35 +0000 (17:39 +0900)
[Version] 1.22.0-20
[Issue Type] Coverity defects

Change-Id: I7eecb9dbacd16aaf2ff00bbee018416389fd0480

packaging/gstreamer.spec
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
subprojects/gst-plugins-bad/gst-libs/gst/webrtc/nice/nice.c

index 1a9f4e0..05eb7f4 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.22.0
-Release:        19
+Release:        20
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 7f0e7fd..2b4d7f4 100644 (file)
@@ -7813,6 +7813,9 @@ on_rtpbin_new_sender_ssrc (GstElement * rtpbin, guint session_id, guint ssrc,
       GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, session_id, ssrc);
   if (!mid) {
     TransportStream *stream = _find_transport_for_session (webrtc, session_id);
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+    if (stream)
+#endif
     transport_stream_add_ssrc_map_item (stream,
         GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, ssrc, -1);
   } else if (mid->mid) {
index 8ebfd74..12be625 100644 (file)
@@ -1061,7 +1061,9 @@ _get_server_url (GstWebRTCNice * ice, NiceCandidate * cand)
       } else {
         return g_strdup (gst_uri_get_host (ice->priv->stun_server));
       }
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
       return g_strdup (gst_uri_get_host (ice->priv->stun_server));
+#endif
     }
     default:
       return g_strdup ("");