Commit 2a868b70 authored by Thijs Vermeir's avatar Thijs Vermeir
Browse files

tests: use gst-check API in videotestsrc

use gst_check_drop_buffers in videotestsrc to
clear the global buffers list.
parent 36e8018c
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment