From 443a14bdbfd5f37cd9afed51fb42453b8c41336d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Jun 2012 16:13:29 +0200 Subject: [PATCH] tests: add test for rtpsession cleanup --- tests/check/elements/rtpbin.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/check/elements/rtpbin.c b/tests/check/elements/rtpbin.c index fb1cc670b1..1339060a3a 100644 --- a/tests/check/elements/rtpbin.c +++ b/tests/check/elements/rtpbin.c @@ -22,6 +22,20 @@ #include +GST_START_TEST (test_pads) +{ + GstElement *element; + GstPad *pad; + + element = gst_element_factory_make ("rtpsession", NULL); + + pad = gst_element_get_request_pad (element, "recv_rtcp_sink"); + gst_object_unref (pad); + gst_object_unref (element); +} + +GST_END_TEST; + GST_START_TEST (test_cleanup_send) { GstElement *rtpbin; @@ -419,6 +433,7 @@ gstrtpbin_suite (void) TCase *tc_chain = tcase_create ("general"); suite_add_tcase (s, tc_chain); + tcase_add_test (tc_chain, test_pads); tcase_add_test (tc_chain, test_cleanup_send); tcase_add_test (tc_chain, test_cleanup_recv); tcase_add_test (tc_chain, test_cleanup_recv2);