[vlc-commits] display: remove useless local copy
Rémi Denis-Courmont
git at videolan.org
Sat Sep 2 19:23:16 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 27 14:44:44 2017 +0300| [9fc68cf78f8b02535933949ab6dce17a76a10848] | committer: Rémi Denis-Courmont
display: remove useless local copy
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fc68cf78f8b02535933949ab6dce17a76a10848
---
src/video_output/display.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 5caf504204..ef35fae6ff 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -846,17 +846,12 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
}
/* */
if (osys->ch_zoom) {
- vout_display_cfg_t cfg = osys->cfg;
-
- cfg.zoom.num = osys->zoom.num;
- cfg.zoom.den = osys->zoom.den;
-
- vout_display_Control(vd, VOUT_DISPLAY_CHANGE_ZOOM, &cfg);
-
osys->fit_window = -1;
- osys->cfg.zoom.num = cfg.zoom.num;
- osys->cfg.zoom.den = cfg.zoom.den;
+ osys->cfg.zoom.num = osys->zoom.num;
+ osys->cfg.zoom.den = osys->zoom.den;
osys->ch_zoom = false;
+
+ vout_display_Control(vd, VOUT_DISPLAY_CHANGE_ZOOM, &osys->cfg);
}
#if defined(_WIN32) || defined(__OS2__)
/* */
More information about the vlc-commits
mailing list