From be84cc2c546401d830b29bb51610b3f22bbca5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 26 Mar 2021 19:38:57 -0400 Subject: [PATCH] webrtcbin: Remove unused session_mid_map Part-of: --- ext/webrtc/gstwebrtcbin.c | 21 --------------------- ext/webrtc/gstwebrtcbin.h | 1 - 2 files changed, 22 deletions(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index ad4073c66d..9913185b08 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 fa8cf6d73c..d063796635 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