mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue