summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOgnyan Tonchev <ognyan@axis.com>2013-02-20 15:46:43 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-02-21 19:31:59 +0000
commit42d8b96f2d2824cf8126526e4966f2144e82e537 (patch)
tree985329c7fcc31ac3436fbd3da43008fd937de0ba
parenta61055809fbba0b3e76328e1b5f24d8a5b021fc2 (diff)
auparse: do not leak src_caps
https://bugzilla.gnome.org/show_bug.cgi?id=694275
-rw-r--r--gst/auparse/gstauparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c
index e643cdc2a..c4319cbc9 100644
--- a/gst/auparse/gstauparse.c
+++ b/gst/auparse/gstauparse.c
@@ -174,6 +174,8 @@ gst_au_parse_reset (GstAuParse * auparse)
gst_adapter_clear (auparse->adapter);
+ gst_caps_replace (&auparse->src_caps, NULL);
+
/* gst_segment_init (&auparse->segment, GST_FORMAT_TIME); */
}