vaapidecode: set format before decide allocation
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 14 Oct 2015 18:22:43 +0000 (20:22 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 20 Oct 2015 10:32:44 +0000 (12:32 +0200)
commit45487fe87cc4dcc0c319701af0516ef6973794ec
tree90b15892d184f914373db1a1de4df087b4d7e924
parent3a2430c78902181325632919c3bc383d44c40048
vaapidecode: set format before decide allocation

There is a regression from commit 3d8e5e. It was expected the buffer pool
allocation occur before the caps negotiation, but it is not.

This patch fixes this regression: the caps negotiation is done regardless the
allocation query from downstream.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=756686
gst/vaapi/gstvaapidecode.c