mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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:
parent
1064bdb06e
commit
7c1a091404
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue