mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
tests: add test for rtpsession cleanup
This commit is contained in:
parent
5a4a4ee105
commit
443a14bdbf
1 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,20 @@
|
|||
|
||||
#include <gst/check/gstcheck.h>
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue