mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-26 09:50:39 +00:00
Fix #109727, refcounting of caps
Original commit message from CVS: Fix #109727, refcounting of caps
This commit is contained in:
parent
e4be0f703f
commit
861c94ed3f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue