webrtcbin: Remove unreachable codes and redundant condition
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 24 Jun 2021 03:03:14 +0000 (12:03 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 24 Jun 2021 06:10:53 +0000 (15:10 +0900)
[Version] 1.16.2-18
[Issue Type] SVACE (UNREACHABLE_CODE/SIMILAR_BRANCHES)

Change-Id: Ic3475956be436e9d2151b1dee1fbc79a1cd1c8b7
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
ext/webrtc/gstwebrtcbin.c
packaging/gst-plugins-bad.spec

index cfd7b1e..2c1e769 100644 (file)
@@ -2537,7 +2537,11 @@ _create_offer_task (GstWebRTCBin * webrtc, const GstStructure * options)
 
     reserved_pts = gather_reserved_pts (webrtc);
     if (last_offer && _parse_bundle (last_offer, &last_bundle) && last_bundle
+#ifndef __TIZEN__
         && last_bundle && last_bundle[0]
+#else
+        && last_bundle[0]
+#endif
         && _get_bundle_index (last_offer, last_bundle, &bundle_media_index)) {
       bundle_ufrag =
           g_strdup (_media_get_ice_ufrag (last_offer, bundle_media_index));
@@ -5213,7 +5217,9 @@ on_rtpbin_request_aux_sender (GstElement * rtpbin, guint session_id,
 {
   TransportStream *stream;
   gboolean have_rtx = FALSE;
+#ifndef __TIZEN__
   GstStructure *pt_map = NULL;
+#endif
   GstElement *ret = NULL;
   GstWebRTCRTPTransceiver *trans;
 
@@ -5224,9 +5230,14 @@ on_rtpbin_request_aux_sender (GstElement * rtpbin, guint session_id,
   if (stream)
     have_rtx = transport_stream_get_pt (stream, "RTX") != 0;
 
+#ifndef __TIZEN__
   GST_LOG_OBJECT (webrtc, "requesting aux sender for stream %" GST_PTR_FORMAT
       " with transport %" GST_PTR_FORMAT " and pt map %" GST_PTR_FORMAT, stream,
       trans, pt_map);
+#else
+  GST_LOG_OBJECT (webrtc, "requesting aux sender for stream %" GST_PTR_FORMAT
+      " with transport %" GST_PTR_FORMAT, stream, trans);
+#endif
 
   if (have_rtx) {
     GstElement *rtx;
@@ -5266,9 +5277,11 @@ on_rtpbin_request_aux_sender (GstElement * rtpbin, guint session_id,
   }
 
 out:
+#ifndef __TIZEN__
   if (pt_map)
     gst_structure_free (pt_map);
 
+#endif
   return ret;
 }
 
index 89c5b94..e8292ac 100644 (file)
@@ -4,7 +4,7 @@
 
 Name:           gst-plugins-bad
 Version:        1.16.2
-Release:        17
+Release:        18
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 License:        LGPL-2.0+
 Group:          Multimedia/Framework