decodebin3: actually check result of accept caps query
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 13 Jul 2016 12:17:25 +0000 (14:17 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Jul 2016 13:54:35 +0000 (14:54 +0100)
commit6c58f5ee2f97baed5ca36b3504dc4e8026915f76
tree79f1b5f20c00f7ef946e2e903e35fd113da35313
parent3273714e0a9d41d86d0013e6d6d4655162ba6da0
decodebin3: actually check result of accept caps query

We were just checking if the query was handled, not its result.

Also fix a leak as gst_pad_query() was not consuming the query.

https://bugzilla.gnome.org/show_bug.cgi?id=768811
gst/playback/gstdecodebin3.c