From 34c365f0f97e651641fe869714f77caf5675e727 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Wed, 19 Jan 2022 15:45:21 +0900 Subject: [PATCH] webrtc: Remove empty spaces and fix missing tizen codes Change-Id: I2c5e95531f944089e9003add5fe2a663394f7096 Signed-off-by: Sangchul Lee --- ext/webrtc/gstwebrtcbin.c | 6 +++++- ext/webrtc/gstwebrtcice.c | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 94d2980..e37074b 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -1274,7 +1274,7 @@ _update_ice_gathering_state_task (GstWebRTCBin * webrtc, gpointer data) GST_INFO_OBJECT (webrtc, "set pending_ice_gathering_state to (%u)", webrtc->pending_ice_gathering_state); ICE_UNLOCK (webrtc); - return NULL; + return NULL; } #else new_state = GST_WEBRTC_ICE_GATHERING_STATE_GATHERING; @@ -3083,7 +3083,11 @@ _create_offer_task (GstWebRTCBin * webrtc, const GstStructure * options, reserved_pts = gather_reserved_pts (webrtc); if (last_offer && _parse_bundle (last_offer, &last_bundle, NULL) +#ifndef __TIZEN__ && last_bundle && last_bundle && last_bundle[0] +#else + && last_bundle && 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)); diff --git a/ext/webrtc/gstwebrtcice.c b/ext/webrtc/gstwebrtcice.c index 54aee95..e39f6c0 100644 --- a/ext/webrtc/gstwebrtcice.c +++ b/ext/webrtc/gstwebrtcice.c @@ -696,7 +696,6 @@ gst_webrtc_ice_add_candidate (GstWebRTCICE * ice, GstWebRTCICEStream * stream, g_free (postfix); #endif - if (0) { fail: #ifdef __TIZEN__ -- 2.7.4