mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
rtpsclientsink: Initialize and clear newly added mutex and cond
While it *did* work, glib would automatically create new mutex and cond ... which never got freed
This commit is contained in:
parent
4ec17b1975
commit
587c1c4707
1 changed files with 12 additions and 0 deletions
|
@ -691,6 +691,12 @@ gst_rtsp_client_sink_init (GstRTSPClientSink * sink)
|
|||
g_mutex_init (&sink->conninfo.send_lock);
|
||||
g_mutex_init (&sink->conninfo.recv_lock);
|
||||
|
||||
g_mutex_init (&sink->block_streams_lock);
|
||||
g_cond_init (&sink->block_streams_cond);
|
||||
|
||||
g_mutex_init (&sink->open_conn_lock);
|
||||
g_cond_init (&sink->open_conn_cond);
|
||||
|
||||
sink->internal_bin = (GstBin *) gst_bin_new ("rtspbin");
|
||||
gst_element_set_locked_state (GST_ELEMENT_CAST (sink->internal_bin), TRUE);
|
||||
gst_bin_add (GST_BIN (sink), GST_ELEMENT_CAST (sink->internal_bin));
|
||||
|
@ -747,6 +753,12 @@ gst_rtsp_client_sink_finalize (GObject * object)
|
|||
g_mutex_clear (&rtsp_client_sink->preroll_lock);
|
||||
g_cond_clear (&rtsp_client_sink->preroll_cond);
|
||||
|
||||
g_mutex_clear (&rtsp_client_sink->block_streams_lock);
|
||||
g_cond_clear (&rtsp_client_sink->block_streams_cond);
|
||||
|
||||
g_mutex_clear (&rtsp_client_sink->open_conn_lock);
|
||||
g_cond_clear (&rtsp_client_sink->open_conn_cond);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue