mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tests/check/pipelines/oggmux.c: Add small test to make sure request pads are cleaned up properly even if oggmux never...
Original commit message from CVS: * tests/check/pipelines/oggmux.c: (GST_START_TEST), (oggmux_suite): Add small test to make sure request pads are cleaned up properly even if oggmux never changes state out of NULL.
This commit is contained in:
parent
b1751ae3cb
commit
e7a698506c
2 changed files with 35 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-02-04 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* tests/check/pipelines/oggmux.c: (GST_START_TEST), (oggmux_suite):
|
||||||
|
Add small test to make sure request pads are cleaned up properly
|
||||||
|
even if oggmux never changes state out of NULL.
|
||||||
|
|
||||||
2007-02-04 Tim-Philipp Müller <tim at centricular dot net>
|
2007-02-04 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* tests/check/libs/utils.c: (GST_START_TEST):
|
* tests/check/libs/utils.c: (GST_START_TEST):
|
||||||
|
|
|
@ -302,6 +302,33 @@ GST_START_TEST (test_vorbis_theora)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
|
GST_START_TEST (test_simple_cleanup)
|
||||||
|
{
|
||||||
|
GstElement *oggmux;
|
||||||
|
|
||||||
|
oggmux = gst_element_factory_make ("oggmux", NULL);
|
||||||
|
gst_object_unref (oggmux);
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_END_TEST;
|
||||||
|
|
||||||
|
GST_START_TEST (test_request_pad_cleanup)
|
||||||
|
{
|
||||||
|
GstElement *oggmux;
|
||||||
|
GstPad *pad;
|
||||||
|
|
||||||
|
oggmux = gst_element_factory_make ("oggmux", NULL);
|
||||||
|
pad = gst_element_get_request_pad (oggmux, "sink_%d");
|
||||||
|
fail_unless (pad != NULL);
|
||||||
|
gst_object_unref (pad);
|
||||||
|
pad = gst_element_get_request_pad (oggmux, "sink_%d");
|
||||||
|
fail_unless (pad != NULL);
|
||||||
|
gst_object_unref (pad);
|
||||||
|
gst_object_unref (oggmux);
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_END_TEST;
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
oggmux_suite (void)
|
oggmux_suite (void)
|
||||||
{
|
{
|
||||||
|
@ -309,7 +336,6 @@ oggmux_suite (void)
|
||||||
TCase *tc_chain = tcase_create ("general");
|
TCase *tc_chain = tcase_create ("general");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
||||||
#ifdef HAVE_VORBIS
|
#ifdef HAVE_VORBIS
|
||||||
tcase_add_test (tc_chain, test_vorbis);
|
tcase_add_test (tc_chain, test_vorbis);
|
||||||
#endif
|
#endif
|
||||||
|
@ -323,6 +349,8 @@ oggmux_suite (void)
|
||||||
tcase_add_test (tc_chain, test_theora_vorbis);
|
tcase_add_test (tc_chain, test_theora_vorbis);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
tcase_add_test (tc_chain, test_simple_cleanup);
|
||||||
|
tcase_add_test (tc_chain, test_request_pad_cleanup);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue