summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay.c13
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;