]> git.sesse.net Git - vlc/commitdiff
Fix another bunch of: (near initialization for `fmt.i_aspect') warnings.
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 16 May 2007 14:13:22 +0000 (14:13 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 16 May 2007 14:13:22 +0000 (14:13 +0000)
modules/video_filter/clone.c
modules/video_filter/crop.c
modules/video_filter/logo.c
modules/video_filter/transform.c
modules/video_filter/wall.c

index bdb6fd6f11721b2fbcd5296829aa3aa503751c2c..2b24788b0417e4dfe589dc46fdc93c183034d235 100644 (file)
@@ -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;
index 9e16a6e771135fd7c783ddd7666d0b02fa33880b..bb049f6025d19898d7ed647cdaa43a6f188a8975 100644 (file)
@@ -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,
index e17168a78474ea7adc6481fe02e95d218b59e30d..5cd42ba9fec22ac083d0d6bc23a6bb81d8c26d34 100644 (file)
@@ -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 =
index 1bcd2571151fd3247e679af40f3d5f1f5017ba30..48d87d2bc01bd1dbb22a2f432364ea566a36625a 100644 (file)
@@ -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;
index 49a88d3829f5c8ed8f80a1867bb5cb462f411e15..4a82124651182a8dce78931c840d1a40097f32da 100644 (file)
@@ -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 )