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.
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;
}