Commit d452ad0e authored by Sebastian Dröge's avatar Sebastian Dröge

ssaparse: Free initialization section before storing the next one

If getting multiple caps events.

https://bugzilla.gnome.org/show_bug.cgi?id=775480
parent 732ecf09
......@@ -195,6 +195,8 @@ gst_ssa_parse_setcaps (GstPad * sinkpad, GstCaps * caps)
}
/* FIXME: parse initial section */
if (parse->ini)
g_free (parse->ini);
parse->ini = g_strndup (ptr, left);
GST_LOG_OBJECT (parse, "Init section:\n%s", parse->ini);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment