From: Jean-Paul Saman Date: Wed, 16 May 2007 14:13:22 +0000 (+0000) Subject: Fix another bunch of: (near initialization for `fmt.i_aspect') warnings. X-Git-Tag: 0.9.0-test0~7421 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=94cc428df657035f243f4122b3c4ad1d910b2229;p=vlc Fix another bunch of: (near initialization for `fmt.i_aspect') warnings. --- diff --git a/modules/video_filter/clone.c b/modules/video_filter/clone.c index bdb6fd6f11..2b24788b04 100644 --- a/modules/video_filter/clone.c +++ b/modules/video_filter/clone.c @@ -217,9 +217,10 @@ static int Init( vout_thread_t *p_vout ) int i_index, i_vout; picture_t *p_pic; char *psz_default_vout; - video_format_t fmt = {0}; + video_format_t fmt; I_OUTPUTPICTURES = 0; + memset( &fmt, 0, sizeof(video_format_t) ); /* Initialize the output structure */ p_vout->output.i_chroma = p_vout->render.i_chroma; diff --git a/modules/video_filter/crop.c b/modules/video_filter/crop.c index 9e16a6e771..bb049f6025 100644 --- a/modules/video_filter/crop.c +++ b/modules/video_filter/crop.c @@ -37,7 +37,7 @@ #define BEST_AUTOCROP 1 #ifdef BEST_AUTOCROP - #define RATIO_MAX 15000 // 10*4/3 for a 360° + #define RATIO_MAX 15000 // 10*4/3 for a 360 #endif /***************************************************************************** @@ -203,9 +203,10 @@ static int Init( vout_thread_t *p_vout ) int i_index; char *psz_var; picture_t *p_pic; - video_format_t fmt = {0}; + video_format_t fmt; I_OUTPUTPICTURES = 0; + memset( &fmt, 0, sizeof(video_format_t) ); p_vout->p_sys->i_lastchange = 0; p_vout->p_sys->b_changed = VLC_FALSE; @@ -436,13 +437,15 @@ static void Destroy( vlc_object_t *p_this ) *****************************************************************************/ static int Manage( vout_thread_t *p_vout ) { - video_format_t fmt = {0}; + video_format_t fmt; if( !p_vout->p_sys->b_changed ) { return VLC_SUCCESS; } + memset( &fmt, 0, sizeof(video_format_t) ); + #ifdef BEST_AUTOCROP msg_Dbg( p_vout, "cropping at %ix%i+%i+%i, %sautocropping", p_vout->p_sys->i_width, p_vout->p_sys->i_height, diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c index e17168a784..5cd42ba9fe 100644 --- a/modules/video_filter/logo.c +++ b/modules/video_filter/logo.c @@ -171,7 +171,11 @@ static picture_t *LoadImage( vlc_object_t *p_this, char *psz_filename ) { picture_t *p_pic; image_handler_t *p_image; - video_format_t fmt_in = {0}, fmt_out = {0}; + video_format_t fmt_in; + video_format_t fmt_out; + + memset( &fmt_in, 0, sizeof(video_format_t) ); + memset( &fmt_out, 0, sizeof(video_format_t) ); fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A'); p_image = image_HandlerCreate( p_this ); @@ -361,11 +365,11 @@ static int Init( vout_thread_t *p_vout ) vout_sys_t *p_sys = p_vout->p_sys; picture_t *p_pic; int i_index; - video_format_t fmt = {0}; - + video_format_t fmt; logo_list_t *p_logo_list = p_sys->p_logo_list; I_OUTPUTPICTURES = 0; + memset( &fmt, 0, sizeof(video_format_t) ); /* adjust index to the next logo */ p_logo_list->i_counter = diff --git a/modules/video_filter/transform.c b/modules/video_filter/transform.c index 1bcd257115..48d87d2bc0 100644 --- a/modules/video_filter/transform.c +++ b/modules/video_filter/transform.c @@ -189,9 +189,10 @@ static int Init( vout_thread_t *p_vout ) { int i_index; picture_t *p_pic; - video_format_t fmt = {0}; + video_format_t fmt; I_OUTPUTPICTURES = 0; + memset( &fmt, 0, sizeof(video_format_t) ); /* Initialize the output structure */ p_vout->output.i_chroma = p_vout->render.i_chroma; diff --git a/modules/video_filter/wall.c b/modules/video_filter/wall.c index 49a88d3829..4a82124651 100644 --- a/modules/video_filter/wall.c +++ b/modules/video_filter/wall.c @@ -241,7 +241,7 @@ static int Init( vout_thread_t *p_vout ) int i_index, i_row, i_col, i_width, i_height, i_left, i_top; unsigned int i_target_width,i_target_height; picture_t *p_pic; - video_format_t fmt = {0}; + video_format_t fmt; int i_aspect = 4*VOUT_ASPECT_FACTOR/3; int i_align = 0; unsigned int i_hstart, i_hend, i_vstart, i_vend; @@ -250,6 +250,8 @@ static int Init( vout_thread_t *p_vout ) int i_vstart_rounded = 0, i_hstart_rounded = 0; char *psz_aspect; + memset( &fmt, 0, sizeof(video_format_t) ); + psz_aspect = var_CreateGetNonEmptyString( p_vout, CFG_PREFIX "element-aspect" ); if( psz_aspect && *psz_aspect )