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:
Joakim Johansson 2019-12-16 13:03:51 +01:00
parent 9f6ed9ec72
commit 4d7d577496

View file

@ -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