[Mplayer-cvslog] CVS: main/libmpdemux demux_ty_osd.c,1.2,1.3

pl CVS pl at mplayerhq.hu
Fri Sep 12 17:55:53 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv22684/libmpdemux

Modified Files:
	demux_ty_osd.c 
Log Message:
warning fix (missing C initializers)


Index: demux_ty_osd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ty_osd.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- demux_ty_osd.c	19 Jun 2003 18:20:15 -0000	1.2
+++ demux_ty_osd.c	12 Sep 2003 15:55:45 -0000	1.3
@@ -779,15 +779,15 @@
 #define DST               ( ( TY_XDS[ 3 ][ 4 ][ 0 ] & 0x20 ) >> 5 )
                struct tm tm = 
                {
-                  0,                                 // sec
-                  ( TY_XDS_ptr[ 0 ] & 0x3F ),        // min
-                  ( TY_XDS_ptr[ 1 ] & 0x1F ),        // hour
-                  ( TY_XDS_ptr[ 2 ] & 0x1F ),        // day
-                  ( TY_XDS_ptr[ 3 ] & 0x1f ) - 1,    // month
-                  ( TY_XDS_ptr[ 5 ] & 0x3f ) + 90,   // year
-                  0,                                 // day of week
-                  0,                                 // day of year
-                  0,                                 // DST
+                  .tm_sec = 0,                                // sec
+                  .tm_min = ( TY_XDS_ptr[ 0 ] & 0x3F ),       // min
+                  .tm_hour = ( TY_XDS_ptr[ 1 ] & 0x1F ),      // hour
+                  .tm_mday = ( TY_XDS_ptr[ 2 ] & 0x1F ),      // day
+                  .tm_mon = ( TY_XDS_ptr[ 3 ] & 0x1f ) - 1,   // month
+                  .tm_year = ( TY_XDS_ptr[ 5 ] & 0x3f ) + 90, // year
+                  .tm_wday = 0,                               // day of week
+                  .tm_yday = 0,                               // day of year
+                  .tm_isdst = 0,                              // DST
                };
 
                time_t time_t = mktime( &tm );



More information about the MPlayer-cvslog mailing list