display: fix validation process of properties during discovery.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 28 Aug 2012 15:11:32 +0000 (18:11 +0300)
committerHolger Kaelberer <hk@getslash.de>
Mon, 15 Apr 2013 10:18:24 +0000 (12:18 +0200)
commitc47a3f3e24e4403a8354cb0eb55b06a5da4f8d29
tree8c6b1d3b67dd6724ea4825d32085076735e28baf
parentd77373dfcfb2ffab20213ddd619fb99ac266bdaf
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().
(cherry picked from commit 8ebe4d63d5d6a5db8b70573ca2286cac3c13ce7e)
gst-libs/gst/vaapi/gstvaapidisplay.c