diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2016-05-02 08:33:42 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-05-03 11:02:47 +0300 |
commit | 7c1a09140459bdb5f525f9739b2bf2cb0411b5d8 (patch) | |
tree | 72710096726c2bf6a64f6b8edae2da0671ece466 /tests | |
parent | 1064bdb06e013a61bf58807e84cb750c7e4fb62f (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/filesrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/elements/filesrc.c b/tests/check/elements/filesrc.c index 5487f7cb2..65b5fb3bc 100644 --- a/tests/check/elements/filesrc.c +++ b/tests/check/elements/filesrc.c @@ -83,6 +83,7 @@ setup_filesrc (void) static void cleanup_filesrc (GstElement * filesrc) { + gst_check_drop_buffers (); gst_pad_set_active (mysinkpad, FALSE); gst_check_teardown_sink_pad (filesrc); gst_check_teardown_element (filesrc); |