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:
Thijs Vermeir 2010-09-16 15:07:15 +02:00
parent 36e8018ca7
commit 2a868b70ec

View file

@ -70,9 +70,7 @@ cleanup_videotestsrc (GstElement * videotestsrc)
{
GST_DEBUG ("cleanup_videotestsrc");
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
buffers = NULL;
gst_check_drop_buffers ();
gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_sink_pad (videotestsrc);
@ -111,9 +109,7 @@ GST_START_TEST (test_all_patterns)
gst_element_set_state (videotestsrc, GST_STATE_READY);
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
g_list_free (buffers);
buffers = NULL;
gst_check_drop_buffers ();
++j;
}