From 861c94ed3f888a489894febac12667b3a42226c8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 4 Apr 2003 18:49:48 +0000 Subject: [PATCH] Fix #109727, refcounting of caps Original commit message from CVS: Fix #109727, refcounting of caps --- gst/gstparse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gstparse.c b/gst/gstparse.c index 2b9138bdb7..241453c79b 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -262,6 +262,10 @@ make_links (graph_t *g, GError **error) a = c->src_pads; b = c->sink_pads; caps = c->caps; + + gst_caps_ref (caps); + gst_caps_sink (caps); + gst_caps_debug (caps, "foo"); /* g_print ("a: %p, b: %p\n", a, b); */ if (a && b) { @@ -363,6 +367,7 @@ make_links (graph_t *g, GError **error) } } next: + gst_caps_unref (caps); l = g_list_next (l); }