From cc11a7f9d75315d17a585486cda0148793d18ea7 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 1 May 2019 18:58:30 +0200 Subject: [PATCH] srt: initialize list access within locked region --- ext/srt/gstsrtobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/srt/gstsrtobject.c b/ext/srt/gstsrtobject.c index aadcfb59aa..5baaa9b874 100644 --- a/ext/srt/gstsrtobject.c +++ b/ext/srt/gstsrtobject.c @@ -1292,9 +1292,10 @@ gst_srt_object_write_to_callers (GstSRTObject * srtobject, GstBufferList * headers, const GstMapInfo * mapinfo, GCancellable * cancellable, GError ** error) { - GList *callers = srtobject->callers; + GList *callers; GST_OBJECT_LOCK (srtobject->element); + callers = srtobject->callers; while (callers != NULL) { gssize len = 0; const guint8 *msg = mapinfo->data;