From: Olivier CrĂȘte Date: Fri, 26 Mar 2021 23:38:57 +0000 (-0400) Subject: webrtcbin: Remove unused session_mid_map X-Git-Tag: 1.19.3~507^2~539 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be84cc2c546401d830b29bb51610b3f22bbca5b8;p=platform%2Fupstream%2Fgstreamer.git webrtcbin: Remove unused session_mid_map Part-of: --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index ad4073c..9913185 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -429,18 +429,6 @@ _add_ice_stream_item (GstWebRTCBin * webrtc, guint session_id, g_array_append_val (webrtc->priv->ice_stream_map, item); } -typedef struct -{ - guint session_id; - gchar *mid; -} SessionMidItem; - -static void -clear_session_mid_item (SessionMidItem * item) -{ - g_free (item->mid); -} - typedef gboolean (*FindTransceiverFunc) (GstWebRTCRTPTransceiver * p1, gconstpointer data); @@ -6586,10 +6574,6 @@ gst_webrtc_bin_finalize (GObject * object) g_array_free (webrtc->priv->pending_local_ice_candidates, TRUE); webrtc->priv->pending_local_ice_candidates = NULL; - if (webrtc->priv->session_mid_map) - g_array_free (webrtc->priv->session_mid_map, TRUE); - webrtc->priv->session_mid_map = NULL; - if (webrtc->priv->pending_pads) g_list_free_full (webrtc->priv->pending_pads, (GDestroyNotify) _free_pending_pad); @@ -7099,11 +7083,6 @@ gst_webrtc_bin_init (GstWebRTCBin * webrtc) webrtc->priv->pending_data_channels = g_ptr_array_new_with_free_func ((GDestroyNotify) gst_object_unref); - webrtc->priv->session_mid_map = - g_array_new (FALSE, TRUE, sizeof (SessionMidItem)); - g_array_set_clear_func (webrtc->priv->session_mid_map, - (GDestroyNotify) clear_session_mid_item); - webrtc->priv->ice_stream_map = g_array_new (FALSE, TRUE, sizeof (IceStreamItem)); webrtc->priv->pending_remote_ice_candidates = diff --git a/ext/webrtc/gstwebrtcbin.h b/ext/webrtc/gstwebrtcbin.h index fa8cf6d..d063796 100644 --- a/ext/webrtc/gstwebrtcbin.h +++ b/ext/webrtc/gstwebrtcbin.h @@ -95,7 +95,6 @@ struct _GstWebRTCBinPrivate gboolean bundle; GPtrArray *transceivers; - GArray *session_mid_map; GPtrArray *transports; GPtrArray *data_channels; /* list of data channels we've received a sctp stream for but no data