mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 19:52:14 +00:00
Fix windows Gui compilation and remove some related typecasts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30764 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
84a962ebea
commit
186bff568e
@ -519,11 +519,11 @@ void guiDone(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* this function gets called by mplayer to update the gui */
|
/* 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
|
#ifdef CONFIG_DVDREAD
|
||||||
dvd_priv_t *dvdp = (dvd_priv_t *) arg;
|
dvd_priv_t *dvdp = arg;
|
||||||
#endif
|
#endif
|
||||||
if(!mygui || !mygui->skin) return 0;
|
if(!mygui || !mygui->skin) return 0;
|
||||||
|
|
||||||
@ -577,17 +577,17 @@ int guiGetEvent(int type, char *arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case guiSetContext:
|
case guiSetContext:
|
||||||
guiIntfStruct.mpcontext = (void *) arg;
|
guiIntfStruct.mpcontext = arg;
|
||||||
break;
|
break;
|
||||||
case guiSetDemuxer:
|
case guiSetDemuxer:
|
||||||
guiIntfStruct.demuxer = (void *) arg;
|
guiIntfStruct.demuxer = arg;
|
||||||
break;
|
break;
|
||||||
case guiSetValues:
|
case guiSetValues:
|
||||||
{
|
{
|
||||||
guiIntfStruct.sh_video = arg;
|
guiIntfStruct.sh_video = arg;
|
||||||
if (arg)
|
if (arg)
|
||||||
{
|
{
|
||||||
sh_video_t *sh = (sh_video_t *)arg;
|
sh_video_t *sh = arg;
|
||||||
codecname = sh->codec->name;
|
codecname = sh->codec->name;
|
||||||
guiIntfStruct.FPS = sh->fps;
|
guiIntfStruct.FPS = sh->fps;
|
||||||
|
|
||||||
@ -644,7 +644,7 @@ int guiGetEvent(int type, char *arg)
|
|||||||
mygui->updatedisplay(mygui, mygui->mainwindow);
|
mygui->updatedisplay(mygui, mygui->mainwindow);
|
||||||
break;
|
break;
|
||||||
case guiSetAfilter:
|
case guiSetAfilter:
|
||||||
guiIntfStruct.afilter = (void *) arg;
|
guiIntfStruct.afilter = arg;
|
||||||
break;
|
break;
|
||||||
case guiCEvent:
|
case guiCEvent:
|
||||||
{
|
{
|
||||||
@ -719,7 +719,7 @@ int guiGetEvent(int type, char *arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case guiSetFileName:
|
case guiSetFileName:
|
||||||
if (arg) guiIntfStruct.Filename = (char *) arg;
|
if (arg) guiIntfStruct.Filename = arg;
|
||||||
break;
|
break;
|
||||||
case guiSetDefaults:
|
case guiSetDefaults:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user