Fix #109727, refcounting of caps

Original commit message from CVS:
Fix #109727, refcounting of caps
This commit is contained in:
Wim Taymans 2003-04-04 18:49:48 +00:00
parent e4be0f703f
commit 861c94ed3f

View file

@ -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);
}