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.
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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment