[MPlayer-cvslog] r30764 - trunk/gui/win32/interface.c

reimar subversion at mplayerhq.hu
Sat Feb 27 20:53:25 CET 2010


Author: reimar
Date: Sat Feb 27 20:53:25 2010
New Revision: 30764

Log:
Fix windows Gui compilation and remove some related typecasts.

Modified:
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Sat Feb 27 19:20:22 2010	(r30763)
+++ trunk/gui/win32/interface.c	Sat Feb 27 20:53:25 2010	(r30764)
@@ -519,11 +519,11 @@ void guiDone(void)
 }
 
 /* this function gets called by mplayer to update the gui */
-int guiGetEvent(int type, char *arg)
+int guiGetEvent(int type, void *arg)
 {
-    stream_t *stream = (stream_t *) arg;
+    stream_t *stream = arg;
 #ifdef CONFIG_DVDREAD
-    dvd_priv_t *dvdp = (dvd_priv_t *) arg;
+    dvd_priv_t *dvdp = arg;
 #endif
     if(!mygui || !mygui->skin) return 0;
 
@@ -577,17 +577,17 @@ int guiGetEvent(int type, char *arg)
             break;
         }
         case guiSetContext:
-            guiIntfStruct.mpcontext = (void *) arg;
+            guiIntfStruct.mpcontext = arg;
             break;
         case guiSetDemuxer:
-            guiIntfStruct.demuxer = (void *) arg;
+            guiIntfStruct.demuxer = arg;
             break;
         case guiSetValues:
         {
             guiIntfStruct.sh_video = arg;
             if (arg)
             {
-                sh_video_t *sh = (sh_video_t *)arg;
+                sh_video_t *sh = arg;
                 codecname = sh->codec->name;
                 guiIntfStruct.FPS = sh->fps;
 
@@ -644,7 +644,7 @@ int guiGetEvent(int type, char *arg)
             mygui->updatedisplay(mygui, mygui->mainwindow);
             break;
         case guiSetAfilter:
-            guiIntfStruct.afilter = (void *) arg;
+            guiIntfStruct.afilter = arg;
             break;
         case guiCEvent:
         {
@@ -719,7 +719,7 @@ int guiGetEvent(int type, char *arg)
             break;
         }
         case guiSetFileName:
-            if (arg) guiIntfStruct.Filename = (char *) arg;
+            if (arg) guiIntfStruct.Filename = arg;
             break;
         case guiSetDefaults:
         {


More information about the MPlayer-cvslog mailing list