[MPlayer-cvslog] r36871 - trunk/gui/win32/interface.c
ib
subversion at mplayerhq.hu
Mon Feb 17 02:28:05 CET 2014
Author: ib
Date: Mon Feb 17 02:28:05 2014
New Revision: 36871
Log:
Avoid pointer cast warnings.
Fixes "cast from pointer to integer of different size" warnings.
This is corresponding to r36858.
Modified:
trunk/gui/win32/interface.c
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c Mon Feb 17 01:45:06 2014 (r36870)
+++ trunk/gui/win32/interface.c Mon Feb 17 02:28:05 2014 (r36871)
@@ -30,6 +30,7 @@
#endif
#include <windows.h>
+#include <stdint.h>
#if defined(__CYGWIN__) || defined(__WINE__)
#define _beginthreadex CreateThread
@@ -685,7 +686,7 @@ int gui(int what, void *data)
break;
case GUI_SET_STATE:
{
- guiInfo.Playing = (int) data;
+ guiInfo.Playing = (intptr_t) data;
switch (guiInfo.Playing)
{
case GUI_PLAY:
@@ -709,9 +710,9 @@ int gui(int what, void *data)
}
case GUI_RUN_COMMAND:
{
- mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", (int) data);
+ mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", (int)(intptr_t) data);
/* MPlayer asks us to quit */
- switch((int) data)
+ switch((intptr_t) data)
{
case MP_CMD_VO_FULLSCREEN:
uiFullScreen();
More information about the MPlayer-cvslog
mailing list