mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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:
parent
5f0a5c3594
commit
874af7db4e
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue