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)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 28 Aug 2012 15:42:19 +0000 (17:42 +0200)
commit8ebe4d63d5d6a5db8b70573ca2286cac3c13ce7e
tree91979f9e75f304fb5114ad4f6e21ace661e1f65d
parentfafcf0e13ce75c0e0d12e935e5aac520687a0195
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