mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
tests/check/elements/mplex.c: Don't use the deprecated gst_element_get_pad().
Original commit message from CVS: * tests/check/elements/mplex.c: (setup_src_pad), (teardown_src_pad): Don't use the deprecated gst_element_get_pad().
This commit is contained in:
parent
777fc07237
commit
2f38368c05
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-05-29 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* tests/check/elements/mplex.c: (setup_src_pad),
|
||||||
|
(teardown_src_pad):
|
||||||
|
Don't use the deprecated gst_element_get_pad().
|
||||||
|
|
||||||
2008-05-29 Sebastian Dröge <slomo@circular-chaos.org>
|
2008-05-29 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* examples/directfb/gstdfb.c: (main):
|
* examples/directfb/gstdfb.c: (main):
|
||||||
|
|
|
@ -128,7 +128,7 @@ setup_src_pad (GstElement * element,
|
||||||
fail_if (srcpad == NULL, "Could not create a srcpad");
|
fail_if (srcpad == NULL, "Could not create a srcpad");
|
||||||
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
||||||
|
|
||||||
sinkpad = gst_element_get_pad (element, sinkname);
|
sinkpad = gst_element_get_request_pad (element, sinkname);
|
||||||
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));
|
||||||
/* references are owned by: 1) us, 2) mplex, 3) mplex list */
|
/* references are owned by: 1) us, 2) mplex, 3) mplex list */
|
||||||
|
@ -154,7 +154,7 @@ teardown_src_pad (GstElement * element, gchar * sinkname)
|
||||||
/* clean up floating src pad */
|
/* clean up floating src pad */
|
||||||
padname = g_strdup (sinkname);
|
padname = g_strdup (sinkname);
|
||||||
memcpy (strchr (padname, '%'), "0", 2);
|
memcpy (strchr (padname, '%'), "0", 2);
|
||||||
sinkpad = gst_element_get_pad (element, padname);
|
sinkpad = gst_element_get_static_pad (element, padname);
|
||||||
g_free (padname);
|
g_free (padname);
|
||||||
/* pad refs held by 1) mplex 2) mplex list and 3) us (through _get) */
|
/* pad refs held by 1) mplex 2) mplex list and 3) us (through _get) */
|
||||||
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 3);
|
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 3);
|
||||||
|
|
Loading…
Reference in a new issue