hlsdemux: Init and clear a mutex

GLib initialises automatically for us for some reason... but of course
does not clear the mutex once the demuxer is destroyed.
This commit is contained in:
Sebastian Dröge 2014-02-27 15:49:20 +01:00
parent 5f0a5c3594
commit 874af7db4e

View file

@ -143,6 +143,7 @@ gst_hls_demux_dispose (GObject * obj)
g_mutex_clear (&demux->download_lock);
g_cond_clear (&demux->download_cond);
g_mutex_clear (&demux->updates_timed_lock);
g_cond_clear (&demux->updates_timed_cond);
G_OBJECT_CLASS (parent_class)->dispose (obj);
@ -222,6 +223,7 @@ gst_hls_demux_init (GstHLSDemux * demux)
g_mutex_init (&demux->download_lock);
g_cond_init (&demux->download_cond);
g_mutex_init (&demux->updates_timed_lock);
g_cond_init (&demux->updates_timed_cond);
/* Updates task */