[vlc-devel] commit: Crop: simplify ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed May 20 18:53:53 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 19 20:05:24 2009 +0300| [d6938fb215207bda182e213544a92ace95676cc0] | committer: Rémi Denis-Courmont
Crop: simplify
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d6938fb215207bda182e213544a92ace95676cc0
---
modules/video_filter/crop.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/video_filter/crop.c b/modules/video_filter/crop.c
index 355b029..0c026ff 100644
--- a/modules/video_filter/crop.c
+++ b/modules/video_filter/crop.c
@@ -228,10 +228,7 @@ static int Init( vout_thread_t *p_vout )
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_time = config_GetInt( p_vout, "autocrop-time" );
- vlc_value_t val={0};
- var_Get( p_vout, "ratio-crop", &val );
- val.psz_string = "0";
- var_SetString( p_vout, "ratio-crop", val.psz_string);
+ var_SetString( p_vout, "ratio-crop", "0" );
if (p_vout->p_sys->b_autocrop)
p_vout->p_sys->i_ratio = 0;
More information about the vlc-devel
mailing list