[vlc-devel] commit: Fix initialization order ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 23 11:41:23 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sat May 23 12:39:56 2009 +0300| [deb3a85153057e12fe59bb5ed24395f0b0012ab0] | committer: Rémi Denis-Courmont
Fix initialization order
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=deb3a85153057e12fe59bb5ed24395f0b0012ab0
---
modules/video_filter/alphamask.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/video_filter/alphamask.c b/modules/video_filter/alphamask.c
index af46bd7..f6b969c 100644
--- a/modules/video_filter/alphamask.c
+++ b/modules/video_filter/alphamask.c
@@ -108,7 +108,8 @@ static int Create( vlc_object_t *p_this )
config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,
p_filter->p_cfg );
- p_sys->p_mask = NULL;
+ psz_string =
+ var_CreateGetStringCommand( p_filter, CFG_PREFIX "mask" );
if( psz_string && *psz_string )
{
LoadMask( p_filter, psz_string );
@@ -116,11 +117,11 @@ static int Create( vlc_object_t *p_this )
msg_Err( p_filter, "Error while loading mask (%s).",
psz_string );
}
+ else
+ p_sys->p_mask = NULL;
free( psz_string );
vlc_mutex_init( &p_sys->mask_lock );
- psz_string =
- var_CreateGetStringCommand( p_filter, CFG_PREFIX "mask" );
var_AddCallback( p_filter, CFG_PREFIX "mask", MaskCallback,
p_filter );
p_filter->pf_video_filter = Filter;
More information about the vlc-devel
mailing list