summaryrefslogtreecommitdiffstats
path: root/tests/check/elements
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-05-29 19:56:53 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-05-29 19:56:53 +0000
commit2f38368c05ce6d7771c69b31ddf1fc14b91fce38 (patch)
tree332fdae696fdb68440cf4871f89f4ccd4edc0954 /tests/check/elements
parent777fc07237c6f4b11e89ca5f5d68e4492f7a6930 (diff)
downloadgst-plugins-bad-2f38368c05ce6d7771c69b31ddf1fc14b91fce38.tar.gz
gst-plugins-bad-2f38368c05ce6d7771c69b31ddf1fc14b91fce38.tar.bz2
gst-plugins-bad-2f38368c05ce6d7771c69b31ddf1fc14b91fce38.zip
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().
Diffstat (limited to 'tests/check/elements')
-rw-r--r--tests/check/elements/mplex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/mplex.c b/tests/check/elements/mplex.c
index 06fc949a..306c9876 100644
--- a/tests/check/elements/mplex.c
+++ b/tests/check/elements/mplex.c
@@ -128,7 +128,7 @@ setup_src_pad (GstElement * element,
fail_if (srcpad == NULL, "Could not create a srcpad");
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",
GST_ELEMENT_NAME (element));
/* 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 */
padname = g_strdup (sinkname);
memcpy (strchr (padname, '%'), "0", 2);
- sinkpad = gst_element_get_pad (element, padname);
+ sinkpad = gst_element_get_static_pad (element, padname);
g_free (padname);
/* pad refs held by 1) mplex 2) mplex list and 3) us (through _get) */
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 3);