diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-08-29 10:13:58 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-08-29 10:13:58 +0200 |
commit | 9b11f069c95e105d42b3ae1150845b02ee851df6 (patch) | |
tree | 56c0a2866ff220326b3083ec03d2f5190a783c7e /gst-libs | |
parent | 38c7fea241f831d0ba29afc794e9af30f53a76bb (diff) |
display: partially revert 8ebe4d6.
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.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidisplay.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index 96a72094..a52339d4 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -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; |