filesrc: fix buffer leaks in tests
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 May 2016 06:33:42 +0000 (08:33 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 3 May 2016 08:02:47 +0000 (11:02 +0300)
commit7c1a09140459bdb5f525f9739b2bf2cb0411b5d8
tree72710096726c2bf6a64f6b8edae2da0671ece466
parent1064bdb06e013a61bf58807e84cb750c7e4fb62f
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
tests/check/elements/filesrc.c