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:
parent
732ecf0925
commit
d452ad0eca
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user