mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 23:32:33 +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
1 changed files with 5 additions and 0 deletions
|
@ -262,6 +262,10 @@ make_links (graph_t *g, GError **error)
|
||||||
a = c->src_pads;
|
a = c->src_pads;
|
||||||
b = c->sink_pads;
|
b = c->sink_pads;
|
||||||
caps = c->caps;
|
caps = c->caps;
|
||||||
|
|
||||||
|
gst_caps_ref (caps);
|
||||||
|
gst_caps_sink (caps);
|
||||||
|
|
||||||
gst_caps_debug (caps, "foo");
|
gst_caps_debug (caps, "foo");
|
||||||
/* g_print ("a: %p, b: %p\n", a, b); */
|
/* g_print ("a: %p, b: %p\n", a, b); */
|
||||||
if (a && b) {
|
if (a && b) {
|
||||||
|
@ -363,6 +367,7 @@ make_links (graph_t *g, GError **error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
next:
|
next:
|
||||||
|
gst_caps_unref (caps);
|
||||||
l = g_list_next (l);
|
l = g_list_next (l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue