mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 19:22:15 +00:00
tests/check/elements/matroskamux.c: Collectpads in core got changed and now also holds a reference to any pad that is...
Original commit message from CVS: * tests/check/elements/matroskamux.c: (setup_src_pad): Collectpads in core got changed and now also holds a reference to any pad that is part of it. Fix refcount checks in test case accordingly.
This commit is contained in:
parent
6f224b2556
commit
323331a051
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-02-06 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* tests/check/elements/matroskamux.c: (setup_src_pad):
|
||||||
|
Collectpads in core got changed and now also holds a
|
||||||
|
reference to any pad that is part of it. Fix refcount
|
||||||
|
checks in test case accordingly.
|
||||||
|
|
||||||
2006-02-06 Tim-Philipp Müller <tim at centricular dot net>
|
2006-02-06 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/apetag/gstapedemux.h:
|
* gst/apetag/gstapedemux.h:
|
||||||
|
|
|
@ -69,13 +69,16 @@ setup_src_pad (GstElement * element,
|
||||||
sinkpad = gst_element_get_pad (element, "audio_%d");
|
sinkpad = gst_element_get_pad (element, "audio_%d");
|
||||||
fail_if (sinkpad == NULL, "Could not get sink pad from %s",
|
fail_if (sinkpad == NULL, "Could not get sink pad from %s",
|
||||||
GST_ELEMENT_NAME (element));
|
GST_ELEMENT_NAME (element));
|
||||||
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 2);
|
/* references are owned by: 1) us, 2) matroskamux, 3) collect pads */
|
||||||
|
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 3);
|
||||||
if (caps)
|
if (caps)
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
fail_unless (gst_pad_set_caps (srcpad, caps));
|
||||||
fail_unless (gst_pad_link (srcpad, sinkpad) == GST_PAD_LINK_OK,
|
fail_unless (gst_pad_link (srcpad, sinkpad) == GST_PAD_LINK_OK,
|
||||||
"Could not link source and %s sink pads", GST_ELEMENT_NAME (element));
|
"Could not link source and %s sink pads", GST_ELEMENT_NAME (element));
|
||||||
gst_object_unref (sinkpad); /* because we got it higher up */
|
gst_object_unref (sinkpad); /* because we got it higher up */
|
||||||
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 1);
|
|
||||||
|
/* references are owned by: 1) matroskamux, 2) collect pads */
|
||||||
|
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 2);
|
||||||
|
|
||||||
return srcpad;
|
return srcpad;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue