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 12:25:09 +0000 (13:25 +0100)
commit2b6759d36e451dcd1e70d902f1095a1d60c08715
tree4115ad61d1fd2146c2762490d153ce40a1bc5a38
parentdc057ab6319842c6f96b924f96afa9c70066420f
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