diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 4c79b473ab..f63c3ddc13 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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