mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tests: use gst-check API in videotestsrc
use gst_check_drop_buffers in videotestsrc to clear the global buffers list.
This commit is contained in:
parent
36e8018ca7
commit
2a868b70ec
1 changed files with 2 additions and 6 deletions
|
@ -70,9 +70,7 @@ cleanup_videotestsrc (GstElement * videotestsrc)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_videotestsrc");
|
GST_DEBUG ("cleanup_videotestsrc");
|
||||||
|
|
||||||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
gst_check_drop_buffers ();
|
||||||
g_list_free (buffers);
|
|
||||||
buffers = NULL;
|
|
||||||
|
|
||||||
gst_pad_set_active (mysinkpad, FALSE);
|
gst_pad_set_active (mysinkpad, FALSE);
|
||||||
gst_check_teardown_sink_pad (videotestsrc);
|
gst_check_teardown_sink_pad (videotestsrc);
|
||||||
|
@ -111,9 +109,7 @@ GST_START_TEST (test_all_patterns)
|
||||||
|
|
||||||
gst_element_set_state (videotestsrc, GST_STATE_READY);
|
gst_element_set_state (videotestsrc, GST_STATE_READY);
|
||||||
|
|
||||||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
gst_check_drop_buffers ();
|
||||||
g_list_free (buffers);
|
|
||||||
buffers = NULL;
|
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue