Commit d9bef016 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: ignore CHANGE_DISPLAY_SIZE failure

In practice, video output display plugins return an error when they do
not support arbitrary sizes. However nowadays, this control is requested
only when the video output or the video window report a change of size.
That cannot be allowed to fail: the display size is what it is
regardless of the result of the control request.
parent e92fbab6
......@@ -888,14 +888,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
osys->width_saved = osys->cfg.display.width;
osys->height_saved = osys->cfg.display.height;
if (vout_display_Control(vd, VOUT_DISPLAY_CHANGE_DISPLAY_SIZE,
&cfg)) {
msg_Err(vd, "Failed to resize display");
vout_display_Control(vd, VOUT_DISPLAY_CHANGE_DISPLAY_SIZE, &cfg);
/* We ignore the resized */
display_width = osys->cfg.display.width;
display_height = osys->cfg.display.height;
}
osys->cfg.display.width = display_width;
osys->cfg.display.height = display_height;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment