[vlc-commits] commit: Fix libvlc_video_set_scale() (Robert Jedrzejczyk )

git at videolan.org git at videolan.org
Sun Jun 27 15:35:38 CEST 2010


vlc/vlc-1.1 | branch: master | Robert Jedrzejczyk <robert at prog.olsztyn.pl> | Sun Jun 27 01:13:57 2010 +0200| [3e23e0bc41a6a4c64186815d1b0ca08a49e1ae04] | committer: Rémi Denis-Courmont 

Fix libvlc_video_set_scale()

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 67e7a01a0b94a0b60670cbf34d8c94d1df098b46)

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

 src/control/video.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 278ec83..74f449e 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -221,7 +221,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
 {
     if (f_scale != 0.)
         var_SetFloat (p_mp, "scale", f_scale);
-    var_SetBool (p_mp, "autoscale", f_scale != 0.);
+    var_SetBool (p_mp, "autoscale", f_scale == 0.);
 
     /* Apply to current video outputs (if any) */
     size_t n;
@@ -232,7 +232,7 @@ void libvlc_video_set_scale( libvlc_media_player_t *p_mp, float f_scale )
 
         if (f_scale != 0.)
             var_SetFloat (p_vout, "scale", f_scale);
-        var_SetBool (p_mp, "autoscale", f_scale != 0.);
+        var_SetBool (p_vout, "autoscale", f_scale == 0.);
         vlc_object_release (p_vout);
     }
     free (pp_vouts);



More information about the vlc-commits mailing list