webrtc: Remove empty spaces and fix missing tizen codes
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 19 Jan 2022 06:45:21 +0000 (15:45 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 19 Jan 2022 06:45:56 +0000 (15:45 +0900)
Change-Id: I2c5e95531f944089e9003add5fe2a663394f7096
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
ext/webrtc/gstwebrtcbin.c
ext/webrtc/gstwebrtcice.c

index 94d2980..e37074b 100644 (file)
@@ -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));
index 54aee95..e39f6c0 100644 (file)
@@ -696,7 +696,6 @@ gst_webrtc_ice_add_candidate (GstWebRTCICE * ice, GstWebRTCICEStream * stream,
     g_free (postfix);
 #endif
 
-
     if (0) {
     fail:
 #ifdef __TIZEN__