ssaparse: Free initialization section before storing the next one

If getting multiple caps events.

https://bugzilla.gnome.org/show_bug.cgi?id=775480
This commit is contained in:
Sebastian Dröge 2016-12-01 19:57:47 +02:00
parent 732ecf0925
commit d452ad0eca

View file

@ -195,6 +195,8 @@ gst_ssa_parse_setcaps (GstPad * sinkpad, GstCaps * caps)
} }
/* FIXME: parse initial section */ /* FIXME: parse initial section */
if (parse->ini)
g_free (parse->ini);
parse->ini = g_strndup (ptr, left); parse->ini = g_strndup (ptr, left);
GST_LOG_OBJECT (parse, "Init section:\n%s", parse->ini); GST_LOG_OBJECT (parse, "Init section:\n%s", parse->ini);