Commit bf17399f authored by Laurent Aimar's avatar Laurent Aimar

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

parent 47a71f07
...@@ -332,13 +332,11 @@ static int GetFontSize( filter_t *p_filter ) ...@@ -332,13 +332,11 @@ static int GetFontSize( filter_t *p_filter )
} }
else else
{ {
vlc_value_t val; int i_ratio = var_GetInteger( p_filter, "freetype-rel-fontsize" );
var_Get( p_filter, "freetype-rel-fontsize", &val ); if( i_ratio > 0 )
if( val.i_int > 0 )
{ {
i_size = (int)p_filter->fmt_out.video.i_height / val.i_int; i_size = (int)p_filter->fmt_out.video.i_height / i_ratio;
p_filter->p_sys->i_display_height = p_filter->p_sys->i_display_height = p_filter->fmt_out.video.i_height;
p_filter->fmt_out.video.i_height;
} }
} }
if( i_size <= 0 ) if( i_size <= 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment