summaryrefslogtreecommitdiffstats
path: root/gst/matroska
diff options
context:
space:
mode:
authorMichal Benes <michal.benes@xeris.cz>2006-05-04 17:27:27 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-05-04 17:27:27 +0000
commit706c907277a81c9f536a5edb18228492a73e8d9a (patch)
tree0016dbffa8fcbb002a23aa925a2434cbf181d2fc /gst/matroska
parent33dccfb084f9265db0e229edd06b8cbdb3c92297 (diff)
gst/matroska/matroska-demux.c: Don't leak caps when freeing the stream context (#340623).
Original commit message from CVS: Patch by: Michal Benes <michal dot benes at xeris dot cz> * gst/matroska/matroska-demux.c: (gst_matroska_demux_reset): Don't leak caps when freeing the stream context (#340623).
Diffstat (limited to 'gst/matroska')
-rw-r--r--gst/matroska/matroska-demux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 9f922c8b..fff021c9 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -227,6 +227,7 @@ gst_matroska_demux_reset (GstElement * element)
if (demux->src[i]->pad != NULL) {
gst_element_remove_pad (GST_ELEMENT (demux), demux->src[i]->pad);
}
+ gst_caps_replace (&demux->src[i]->caps, NULL);
g_free (demux->src[i]->codec_id);
g_free (demux->src[i]->codec_name);
g_free (demux->src[i]->name);