display: partially revert 8ebe4d6.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 29 Aug 2012 08:13:58 +0000 (10:13 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 29 Aug 2012 08:13:58 +0000 (10:13 +0200)
Don't try to fix up the initial values, this could make things worse.
Simply assume the driver does not support the capability in this case.

gst-libs/gst/vaapi/gstvaapidisplay.c

index 96a7209..a52339d 100644 (file)
@@ -650,16 +650,9 @@ gst_vaapi_display_create(GstVaapiDisplay *display)
             continue;
 
         /* Some drivers (e.g. EMGD) have completely random initial
-         * values. So try to reset sensible ones */
-        if (value < attr->min_value || value > attr->max_value) {
-            gint v;
-            if (!(attr->flags & VA_DISPLAY_ATTRIB_SETTABLE))
-                continue;
-            if (!set_attribute(display, attr->type, attr->value))
-                continue;
-            if (!get_attribute(display, attr->type, &v) || v != value)
-                continue;
-        }
+         * values */
+        if (value < attr->min_value || value > attr->max_value)
+            continue;
 
         prop.attribute = *attr;
         prop.old_value = value;