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

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


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

Fix libvlc_video_set_scale()

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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 29ae731..ea10304 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -223,7 +223,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;
@@ -234,7 +234,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