[vlc-commits] lib: do not convert to double in libvlc_video_set_scale()

Rémi Denis-Courmont git at videolan.org
Tue May 20 13:10:28 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 19 19:08:56 2014 +0800| [f350b09ddeaa879742d688ba3d7de7671d811eb3] | committer: Rémi Denis-Courmont

lib: do not convert to double in libvlc_video_set_scale()

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

 lib/video.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/video.c b/lib/video.c
index d0f1f7a..d6c2f94 100644
--- a/lib/video.c
+++ b/lib/video.c
@@ -239,7 +239,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.f);
 
     /* Apply to current video outputs (if any) */
     size_t n;
@@ -250,7 +250,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_vout, "autoscale", f_scale == 0.);
+        var_SetBool (p_vout, "autoscale", f_scale == 0.f);
         vlc_object_release (p_vout);
     }
     free (pp_vouts);



More information about the vlc-commits mailing list