summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-12-01 19:57:47 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-12-05 11:02:51 +0200
commite53fe39c35f12e362bd754fbeaf89ea8a4badac9 (patch)
treeb74dda57e303d1c95a6327f36fafd13d218051b3
parent73e5a830c089767f018f3c8824df1fd58302fe06 (diff)
downloadgstreamer-plugins-base-e53fe39c35f12e362bd754fbeaf89ea8a4badac9.tar.gz
ssaparse: Free initialization section before storing the next one
If getting multiple caps events. https://bugzilla.gnome.org/show_bug.cgi?id=775480
-rw-r--r--gst/subparse/gstssaparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c
index 536ce0d52..9b00e7978 100644
--- a/gst/subparse/gstssaparse.c
+++ b/gst/subparse/gstssaparse.c
@@ -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);