vaapidecode: return sink caps template if decoder is in NULL state.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 8 Dec 2011 10:54:59 +0000 (11:54 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 8 Dec 2011 14:48:42 +0000 (15:48 +0100)
commit809e087cca77d5a233a622e92b3905c93728ca42
tree4d5ac48eac007c22be1c45f90b29d05c9c13926b
parentdc08d1eae08c7bfa3ab6c4b3a7770387d6058e0b
vaapidecode: return sink caps template if decoder is in NULL state.

Otherwise, the decoder would always create its own X display instead
of probing it from the downstream element, which is not reliable.
e.g. DISPLAY is not :0 or when running on Wayland.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapidecode.h