[MPlayer-cvslog] r33750 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Tue Jun 28 11:07:43 CEST 2011


Author: ib
Date: Tue Jun 28 11:07:43 2011
New Revision: 33750

Log:
Remove needless memset initialization of guiInfo.

Use designators for structure initialization and
symbolic constant instead of numeric constant for
StreamType.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Tue Jun 28 10:52:02 2011	(r33749)
+++ trunk/gui/interface.c	Tue Jun 28 11:07:43 2011	(r33750)
@@ -50,7 +50,10 @@
 #include "stream/stream_dvd.h"
 #endif
 
-guiInterface_t guiInfo;
+guiInterface_t guiInfo = {
+    .StreamType = STREAMTYPE_DUMMY,
+    .Balance    = 50.0f
+};
 
 int guiWinID = -1;
 
@@ -163,10 +166,6 @@ void guiInit(void)
 
     mp_msg(MSGT_GPLAYER, MSGL_V, "GUI init.\n");
 
-    memset(&guiInfo, 0, sizeof(guiInfo));
-    guiInfo.Balance    = 50.0f;
-    guiInfo.StreamType = -1;
-
     memset(&gtkEquChannels, 0, sizeof(gtkEquChannels));
 
 #ifdef CONFIG_DXR3


More information about the MPlayer-cvslog mailing list