inputselector: fix cached buffer leak in chain function
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 10 Apr 2015 10:32:27 +0000 (12:32 +0200)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 10 Apr 2015 12:27:30 +0000 (09:27 -0300)
commitb15e6f4bf018b92952bfecf9a94c2cbceb6e29ea
tree5be5b500567a1656d4b5d1968756d260a11ada79
parent0865bc02ea6a73a0b00b644ef1f213b90d53c722
inputselector: fix cached buffer leak in chain function

gst_selector_pad_chain() was popping cached buffers out of the queue without
freeing those. Make sure we don't steal the GstBuffer as the cached buffer ref
has been passed to the pad chain function.

This can be reproduced by running the
validate.file.playback.switch_subtitle_track_while_paused.test5_mkv scenario
with Valgrind.

https://bugzilla.gnome.org/show_bug.cgi?id=747611

Signed-off-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
plugins/elements/gstinputselector.c