[vlc-commits] display: remove useless local copy
Rémi Denis-Courmont
git at videolan.org
Sat Sep 2 19:23:04 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 27 14:44:44 2017 +0300| [d48577c5495b9fc754a3987656487211040cb118] | committer: Rémi Denis-Courmont
display: remove useless local copy
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d48577c5495b9fc754a3987656487211040cb118
---
src/video_output/display.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 58df03b617..4e8cef24c4 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -827,18 +827,15 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
/* */
if (ch_display_size) {
- vout_display_cfg_t cfg = osys->cfg;
- cfg.display.width = display_width;
- cfg.display.height = display_height;
#if defined(_WIN32) || defined(__OS2__)
osys->width_saved = osys->cfg.display.width;
osys->height_saved = osys->cfg.display.height;
#endif
-
- vout_display_Control(vd, VOUT_DISPLAY_CHANGE_DISPLAY_SIZE, &cfg);
-
osys->cfg.display.width = display_width;
osys->cfg.display.height = display_height;
+
+ vout_display_Control(vd, VOUT_DISPLAY_CHANGE_DISPLAY_SIZE,
+ &osys->cfg);
}
/* */
if (osys->is_display_filled != osys->cfg.is_display_filled) {
More information about the vlc-commits
mailing list