Commit d6938fb2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Crop: simplify

parent 867fbfa4
...@@ -228,10 +228,7 @@ static int Init( vout_thread_t *p_vout ) ...@@ -228,10 +228,7 @@ static int Init( vout_thread_t *p_vout )
config_GetInt( p_vout, "autocrop-non-black-pixels" ); config_GetInt( p_vout, "autocrop-non-black-pixels" );
p_vout->p_sys->i_diff = config_GetInt( p_vout, "autocrop-diff" ); p_vout->p_sys->i_diff = config_GetInt( p_vout, "autocrop-diff" );
p_vout->p_sys->i_time = config_GetInt( p_vout, "autocrop-time" ); p_vout->p_sys->i_time = config_GetInt( p_vout, "autocrop-time" );
vlc_value_t val={0}; var_SetString( p_vout, "ratio-crop", "0" );
var_Get( p_vout, "ratio-crop", &val );
val.psz_string = "0";
var_SetString( p_vout, "ratio-crop", val.psz_string);
if (p_vout->p_sys->b_autocrop) if (p_vout->p_sys->b_autocrop)
p_vout->p_sys->i_ratio = 0; p_vout->p_sys->i_ratio = 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