mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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.
This commit is contained in:
parent
38c7fea241
commit
9b11f069c9
1 changed files with 3 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue