]> git.sesse.net Git - vlc/commitdiff
Fix compiler warning: missing initializer
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 14:02:49 +0000 (14:02 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 14:02:49 +0000 (14:02 +0000)
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/mux.c
modules/video_filter/panoramix.c
src/input/decoder.c
src/misc/update.c

index bcc3e06cd122d07e8bed0f8526430c16d3f869c7..f1d15df91b83cff6424a4b7dc4dba86a9dc51048 100644 (file)
@@ -466,7 +466,7 @@ static struct
     { VLC_FOURCC('R','V','3','2'), PIX_FMT_RGBA32 },
     { VLC_FOURCC('G','R','E','Y'), PIX_FMT_GRAY8 },
 
-    {0}
+    { 0, 0 }
 };
 
 int E_(GetFfmpegChroma)( vlc_fourcc_t i_chroma )
@@ -1142,7 +1142,7 @@ static struct
       AUDIO_ES, "WavPack" },
 #endif
 
-    {0}
+    { 0, 0, 0, 0 }
 };
 
 int E_(GetFfmpegCodec)( vlc_fourcc_t i_fourcc, int *pi_cat,
index eed1c2c0174f8d608e4d4ce03ef519e4b44cf015..9ed07f1eea071e7fb7356acde3a61290d52c1cc8 100644 (file)
@@ -301,7 +301,9 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
     block_t *p_data = block_FifoGet( p_input->p_fifo );
     int i_stream = *((int *)p_input->p_sys);
     AVStream *p_stream = p_sys->oc->streams[i_stream];
-    AVPacket pkt = {0};
+    AVPacket pkt;
+
+    memset( &pkt, 0, sizeof(AVPacket) );
 
     av_init_packet(&pkt);
     pkt.data = p_data->p_buffer;
index 4aa8dc7c5850c017a92d316590bef33f381a0efe..48558190e51fe455558efc5f28a40a38fa017e0a 100644 (file)
@@ -749,6 +749,10 @@ static int Init( vout_thread_t *p_vout )
     {
         for( i_col = 0; i_col < p_vout->p_sys->i_col; i_col++ )
         {
+            video_format_t fmt;
+
+            memset( &fmt, 0, sizeof(video_format_t) );
+
             if( i_col + 1 < p_vout->p_sys->i_col )
             {
                 i_width = ( p_vout->render.i_width
@@ -797,8 +801,6 @@ static int Init( vout_thread_t *p_vout )
                 continue;
             }
 
-           video_format_t fmt = {0};
-
             fmt.i_width = fmt.i_visible_width = p_vout->render.i_width;
             fmt.i_height = fmt.i_visible_height = p_vout->render.i_height;
             fmt.i_x_offset = fmt.i_y_offset = 0;
index f5c2e7c43fbf8738fb5d23c3a92218ccebd98fb1..5e6c76247fc4202731fedac600b73f28c0de9cd5 100644 (file)
@@ -55,7 +55,7 @@ static void vout_unlink_picture( decoder_t *, picture_t * );
 static subpicture_t *spu_new_buffer( decoder_t * );
 static void spu_del_buffer( decoder_t *, subpicture_t * );
 
-static es_format_t null_es_format = {0};
+static es_format_t null_es_format;
 
 struct decoder_owner_sys_t
 {
@@ -396,7 +396,7 @@ static decoder_t * CreateDecoder( input_thread_t *p_input,
    /* Initialize the decoder fifo */
     p_dec->p_module = NULL;
 
-
+    memset( &null_es_format, 0, sizeof(es_format_t) );
     es_format_Copy( &p_dec->fmt_in, fmt );
     es_format_Copy( &p_dec->fmt_out, &null_es_format );
 
index a4188633446871401134b0cf7405cc3bc541aa6b..e13a66e43b954944fe5e3fc42991dffb384407e3 100644 (file)
@@ -221,16 +221,16 @@ void GetMirrorsList( update_t *p_update, vlc_bool_t b_force )
 
     xml_t *p_xml = NULL;
     xml_reader_t *p_xml_reader = NULL;
-
     char *psz_eltname = NULL;
     //char *psz_eltvalue = NULL;
     char *psz_name = NULL;
     char *psz_value = NULL;
-
-    struct update_mirror_t tmp_mirror = {0};
+    struct update_mirror_t tmp_mirror;
 
     vlc_mutex_lock( &p_update->lock );
 
+    memset( &tmp_mirror, 0, sizeof(struct update_mirror_t));
+
     if( p_update->b_mirrors && b_force == VLC_FALSE )
     {
         vlc_mutex_unlock( &p_update->lock );
@@ -399,11 +399,14 @@ void GetFilesList( update_t *p_update, vlc_bool_t b_force )
     char *psz_value = NULL;
 
     struct update_release_t *p_release = NULL;
-    struct update_release_t tmp_release = {0};
-    struct update_file_t tmp_file = {0};
+    struct update_release_t tmp_release;
+    struct update_file_t tmp_file;
 
     vlc_bool_t b_os = VLC_FALSE, b_arch = VLC_FALSE;
 
+    memset( &tmp_release, 0, sizeof(struct update_release_t) );
+    memset( &tmp_file, 0, sizeof(struct update_file_t) );
+
     tmp_release.i_type = UPDATE_RELEASE_TYPE_STABLE;
 
     vlc_mutex_lock( &p_update->lock );
@@ -730,8 +733,10 @@ int CompareReleases( struct update_release_t *p1, struct update_release_t *p2 )
  */
 int CompareReleaseToCurrent( struct update_release_t *p )
 {
-    struct update_release_t c = {0};
+    struct update_release_t c;
     int r;
+
+    memset( &c, 0, sizeof(struct update_release_t) );
     c.psz_major = STRDUP( PACKAGE_VERSION_MAJOR );
     c.psz_minor = STRDUP( PACKAGE_VERSION_MINOR );
     c.psz_revision = STRDUP( PACKAGE_VERSION_REVISION );