From ef7f8d35dfdd9b4516ff390eeb956b359cb266d3 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Thu, 24 Jun 2021 12:03:14 +0900 Subject: [PATCH] webrtcbin: Remove unreachable codes and redundant condition [Version] 1.16.2-18 [Issue Type] SVACE (UNREACHABLE_CODE/SIMILAR_BRANCHES) Change-Id: Ic3475956be436e9d2151b1dee1fbc79a1cd1c8b7 Signed-off-by: Sangchul Lee --- ext/webrtc/gstwebrtcbin.c | 13 +++++++++++++ packaging/gst-plugins-bad.spec | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index cfd7b1e03..2c1e76966 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -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; } diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index 89c5b944c..e8292ace5 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -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 -- 2.34.1