Mercurial > mplayer.hg
diff gui/win32/interface.c @ 36779:f5320e43d458
Simplify code.
Use a variable and cast once.
author | ib |
---|---|
date | Mon, 17 Feb 2014 14:33:03 +0000 |
parents | 666757381a27 |
children | 92e53547406d |
line wrap: on
line diff
--- a/gui/win32/interface.c Mon Feb 17 13:57:24 2014 +0000 +++ b/gui/win32/interface.c Mon Feb 17 14:33:03 2014 +0000 @@ -556,6 +556,7 @@ /* this function gets called by mplayer to update the gui */ int gui(int what, void *data) { + int idata = (intptr_t) data; stream_t *stream = data; #ifdef CONFIG_DVDREAD dvd_priv_t *dvdp; @@ -686,7 +687,7 @@ break; case GUI_SET_STATE: { - guiInfo.Playing = (intptr_t) data; + guiInfo.Playing = idata; switch (guiInfo.Playing) { case GUI_PLAY: @@ -710,9 +711,9 @@ } case GUI_RUN_COMMAND: { - mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", (int)(intptr_t) data); + mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", idata); /* MPlayer asks us to quit */ - switch((intptr_t) data) + switch(idata) { case MP_CMD_VO_FULLSCREEN: uiFullScreen();