filesrc: fix buffer leaks in tests

gst_check_setup_sink_pad() internally uses gst_check_chain_func() so we
should call gst_check_drop_buffers() when tearing down tests to free the
buffers which have been exchanged through the pipeline.

https://bugzilla.gnome.org/show_bug.cgi?id=765903
This commit is contained in:
Guillaume Desmottes 2016-05-02 08:33:42 +02:00 committed by Sebastian Dröge
parent 1064bdb06e
commit 7c1a091404

View file

@ -83,6 +83,7 @@ setup_filesrc (void)
static void static void
cleanup_filesrc (GstElement * filesrc) cleanup_filesrc (GstElement * filesrc)
{ {
gst_check_drop_buffers ();
gst_pad_set_active (mysinkpad, FALSE); gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_sink_pad (filesrc); gst_check_teardown_sink_pad (filesrc);
gst_check_teardown_element (filesrc); gst_check_teardown_element (filesrc);