diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-27 19:53:25 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-27 19:53:25 +0000 |
commit | 186bff568efa4ba64f293bb157677f415fce5e7d (patch) | |
tree | 80722525c3be98de57bfaccbab9269aef5cdfa63 /gui | |
parent | 84a962ebea8e695de1a9af41ccd100a969cec1a0 (diff) | |
download | mpv-186bff568efa4ba64f293bb157677f415fce5e7d.tar.bz2 mpv-186bff568efa4ba64f293bb157677f415fce5e7d.tar.xz |
Fix windows Gui compilation and remove some related typecasts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30764 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui')
-rw-r--r-- | gui/win32/interface.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gui/win32/interface.c b/gui/win32/interface.c index d74c76a356..5fbaa1ed64 100644 --- a/gui/win32/interface.c +++ b/gui/win32/interface.c @@ -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: { |