srt: initialize list access within locked region

This commit is contained in:
Mark Nauwelaerts 2019-05-01 18:58:30 +02:00
parent ce92cb81a0
commit cc11a7f9d7

View file

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