From: Mark Nauwelaerts Date: Wed, 1 May 2019 16:58:30 +0000 (+0200) Subject: srt: initialize list access within locked region X-Git-Tag: 1.16.2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64160dcc172adeef7381db92344193e309eb28e0;p=platform%2Fupstream%2Fgst-plugins-bad.git srt: initialize list access within locked region --- diff --git a/ext/srt/gstsrtobject.c b/ext/srt/gstsrtobject.c index aadcfb59a..5baaa9b87 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;