display: fix validation process of properties during discovery.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 28 Aug 2012 12:05:16 +0000 (14:05 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 7 Sep 2012 12:37:06 +0000 (14:37 +0200)
commit64c3d4788b9bf6d441afc01023829a72d43ac92a
tree0852bb54942f4fa5170c085391b4c4ff1680e7ef
parentf6fb598b147f5dd942016d6616b2e8764039c7b1
display: fix validation process of properties during discovery.

Some VA drivers (e.g. EMGD) can have completely random values for initial
display attributes. So, try to improve the discovery process to check the
initial display attribute values actually fall within valid bounds. If not,
try to reset those to some sensible values like the default value reported
through vaQueryDisplayAttributes().
gst-libs/gst/vaapi/gstvaapidisplay.c