]> git.sesse.net Git - vlc/commitdiff
vout: ignore CHANGE_DISPLAY_SIZE failure
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 15 Oct 2014 19:14:52 +0000 (22:14 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 16 Oct 2014 17:23:39 +0000 (20:23 +0300)
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.

src/video_output/display.c

index 37a22045138da3d80525aa27cd239da84805f648..f34b781c36ef217dfba995934624c84696736dba 100644 (file)
@@ -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;
         }