adaptivedemux2: Remove scheduler_lock mutex
authorJan Schmidt <jan@centricular.com>
Tue, 11 Oct 2022 15:14:32 +0000 (02:14 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 4 Nov 2022 16:24:26 +0000 (03:24 +1100)
Remove the old unused scheduler_lock

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3314>

subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-private.h
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.c

index 17f8778..cc62325 100644 (file)
@@ -73,7 +73,6 @@ struct _GstAdaptiveDemuxPrivate
 
   /* Adaptive scheduling and parsing task */
   GstAdaptiveDemuxLoop *scheduler_task;
-  GMutex scheduler_lock;
 
   /* Callback / timer id for the next manifest update */
   guint manifest_updates_cb;
index f154aee..261bf06 100644 (file)
@@ -574,7 +574,6 @@ gst_adaptive_demux_init (GstAdaptiveDemux * demux,
   g_rec_mutex_init (&demux->priv->manifest_lock);
 
   demux->priv->scheduler_task = gst_adaptive_demux_loop_new ();
-  g_mutex_init (&demux->priv->scheduler_lock);
 
   g_mutex_init (&demux->priv->api_lock);
   g_mutex_init (&demux->priv->segment_lock);
@@ -646,7 +645,6 @@ gst_adaptive_demux_finalize (GObject * object)
 
   g_mutex_clear (&demux->priv->buffering_lock);
 
-  g_mutex_clear (&demux->priv->scheduler_lock);
   gst_adaptive_demux_loop_unref (demux->priv->scheduler_task);
 
   /* The input period is present after a reset, clear it now */