[vlc-commits] display: deduplicate zoom limits

Rémi Denis-Courmont git at videolan.org
Thu Jan 24 18:02:30 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 23 21:43:31 2019 +0200| [ff72ba1ed65dadb323a5b61adbbb7d952198c0ca] | committer: Rémi Denis-Courmont

display: deduplicate zoom limits

The 10%-1000% limits are already enforced by the vout code.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff72ba1ed65dadb323a5b61adbbb7d952198c0ca
---

 src/video_output/display.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index de36bdd5b8..ce9a8ddd56 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -653,14 +653,6 @@ void vout_SetDisplayZoom(vout_display_t *vd, unsigned num, unsigned den)
 {
     vout_display_priv_t *osys = container_of(vd, vout_display_priv_t, display);
 
-    if (10 * num <= den) {
-        num = 1;
-        den = 10;
-    } else if (num >= 10 * den) {
-        num = 10;
-        den = 1;
-    }
-
     if (!osys->cfg.is_display_filled
      && osys->cfg.zoom.num == num && osys->cfg.zoom.den == den)
         return; /* nothing to do */



More information about the vlc-commits mailing list