vaapidecode: return pad's template caps if no display
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 28 Oct 2015 12:01:04 +0000 (13:01 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 9 Nov 2015 15:18:19 +0000 (16:18 +0100)
commit75e7a0a36ce5288cb1d6c24f0c8a97aae33c546d
treeb3cdb44390b4638a957238c6cae8c9db00823e8a
parentd69f747d0949bc87816bb74ac33135b618296c45
vaapidecode: return pad's template caps if no display

A caps query can occur before the element has a display. In that case, the
element can return its pad's template. But when the element already has a
display, and the caps probe fails, the element shall return an empty caps, so
the auto-plug could try with another decoder.

If the element has a display and the caps probe works, then the computed caps
should be returned.

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