mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
gstrtspsrc: Add missing lock on free set_get_param_q
Otherwise is it possible to get a crash in gst_rtspsrc_set_parameter.
This commit is contained in:
parent
9f6ed9ec72
commit
4d7d577496
1 changed files with 3 additions and 0 deletions
|
@ -2455,10 +2455,13 @@ gst_rtspsrc_cleanup (GstRTSPSrc * src)
|
|||
src->provided_clock = NULL;
|
||||
}
|
||||
|
||||
GST_OBJECT_LOCK (src);
|
||||
/* free parameter requests queue */
|
||||
if (!g_queue_is_empty (&src->set_get_param_q))
|
||||
g_queue_free_full (&src->set_get_param_q, free_param_queue);
|
||||
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue