urisourcebin: Remove unused lock/list

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>
This commit is contained in:
Edward Hervey 2022-10-25 11:05:45 +02:00 committed by GStreamer Marge Bot
parent 638633dea3
commit c8b9a7d640

View file

@ -135,10 +135,6 @@ struct _GstURISourceBin
GMutex lock; /* lock for constructing */ GMutex lock; /* lock for constructing */
GMutex factories_lock;
guint32 factories_cookie;
GList *factories; /* factories we can use for selecting elements */
gchar *uri; gchar *uri;
guint64 connection_speed; guint64 connection_speed;
@ -476,9 +472,6 @@ gst_uri_source_bin_class_init (GstURISourceBinClass * klass)
static void static void
gst_uri_source_bin_init (GstURISourceBin * urisrc) gst_uri_source_bin_init (GstURISourceBin * urisrc)
{ {
/* first filter out the interesting element factories */
g_mutex_init (&urisrc->factories_lock);
g_mutex_init (&urisrc->lock); g_mutex_init (&urisrc->lock);
g_mutex_init (&urisrc->buffering_lock); g_mutex_init (&urisrc->buffering_lock);
@ -511,12 +504,9 @@ gst_uri_source_bin_finalize (GObject * obj)
remove_demuxer (urisrc); remove_demuxer (urisrc);
g_mutex_clear (&urisrc->lock); g_mutex_clear (&urisrc->lock);
g_mutex_clear (&urisrc->factories_lock);
g_mutex_clear (&urisrc->buffering_lock); g_mutex_clear (&urisrc->buffering_lock);
g_mutex_clear (&urisrc->buffering_post_lock); g_mutex_clear (&urisrc->buffering_post_lock);
g_free (urisrc->uri); g_free (urisrc->uri);
if (urisrc->factories)
gst_plugin_feature_list_free (urisrc->factories);
G_OBJECT_CLASS (parent_class)->finalize (obj); G_OBJECT_CLASS (parent_class)->finalize (obj);
} }