[vlc-commits] Replaced a var_Get() by var_GetInteger() in freetype.

Laurent Aimar git at videolan.org
Sat Jun 11 00:31:23 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jun 10 21:43:00 2011 +0200| [bf17399f70f8ca18737e433229bb69edb4a23130] | committer: Laurent Aimar

Replaced a var_Get() by var_GetInteger() in freetype.

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

 modules/misc/text_renderer/freetype.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/modules/misc/text_renderer/freetype.c b/modules/misc/text_renderer/freetype.c
index 0436980..f1a57d2 100644
--- a/modules/misc/text_renderer/freetype.c
+++ b/modules/misc/text_renderer/freetype.c
@@ -332,13 +332,11 @@ static int GetFontSize( filter_t *p_filter )
     }
     else
     {
-        vlc_value_t val;
-        var_Get( p_filter, "freetype-rel-fontsize", &val );
-        if( val.i_int  > 0 )
+        int i_ratio = var_GetInteger( p_filter, "freetype-rel-fontsize" );
+        if( i_ratio > 0 )
         {
-            i_size = (int)p_filter->fmt_out.video.i_height / val.i_int;
-            p_filter->p_sys->i_display_height =
-                p_filter->fmt_out.video.i_height;
+            i_size = (int)p_filter->fmt_out.video.i_height / i_ratio;
+            p_filter->p_sys->i_display_height = p_filter->fmt_out.video.i_height;
         }
     }
     if( i_size <= 0 )



More information about the vlc-commits mailing list