Mercurial > mplayer.hg
diff gui/interface.c @ 33662:03117468ae0e
Remove needless memset initialization of guiInfo.
Use designators for structure initialization and
symbolic constant instead of numeric constant for
StreamType.
author | ib |
---|---|
date | Tue, 28 Jun 2011 09:07:43 +0000 |
parents | b2071e60b20b |
children | 8b27d1369c5e |
line wrap: on
line diff
--- a/gui/interface.c Tue Jun 28 08:52:02 2011 +0000 +++ b/gui/interface.c Tue Jun 28 09:07:43 2011 +0000 @@ -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 @@ mp_msg(MSGT_GPLAYER, MSGL_V, "GUI init.\n"); - memset(&guiInfo, 0, sizeof(guiInfo)); - guiInfo.Balance = 50.0f; - guiInfo.StreamType = -1; - memset(>kEquChannels, 0, sizeof(gtkEquChannels)); #ifdef CONFIG_DXR3