mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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");
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue