]> git.sesse.net Git - vlc/commitdiff
Fix compiler warnings of type "warning: (near initialization for `fmt.i_aspect')"
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 16 May 2007 14:06:49 +0000 (14:06 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 16 May 2007 14:06:49 +0000 (14:06 +0000)
modules/video_filter/rss.c

index 2ee7e89dcbb3ca48624542fd632fc96d5a9b9736..8fb784f69fbf61d3066cade6cf4c077244d4d971 100644 (file)
@@ -344,14 +344,15 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
     subpicture_t *p_spu;
-    video_format_t fmt = {0};
-
+    video_format_t fmt;
     subpicture_region_t *p_region;
 
     int i_feed, i_item;
 
     struct rss_feed_t *p_feed;
 
+    memset( &fmt, 0, sizeof(video_format_t) );
+
     vlc_mutex_lock( &p_sys->lock );
 
     if( p_sys->last_date
@@ -501,7 +502,9 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
     {
         /* Display the feed's image */
         picture_t *p_pic = p_feed->p_pic;
-        video_format_t fmt_out = {0};
+        video_format_t fmt_out;
+
+        memset( &fmt_out, 0, sizeof(video_format_t) );
 
         fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A');
         fmt_out.i_aspect = VOUT_ASPECT_FACTOR;
@@ -545,11 +548,15 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
 static picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
-
-    video_format_t fmt_in={0}, fmt_out={0};
-    picture_t *p_orig, *p_pic=NULL;
+    video_format_t fmt_in;
+    video_format_t fmt_out;
+    picture_t *p_orig;
+    picture_t *p_pic = NULL;
     image_handler_t *p_handler = image_HandlerCreate( p_filter );
 
+    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_orig = image_ReadUrl( p_handler, psz_url, &fmt_in, &fmt_out );