summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-25 21:27:22 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-25 21:27:22 +0000
commitadc345131f947569f9b6e490119ad9969c09529e (patch)
tree8ce153cdb01fc7d6d1fc6b141659bdad2066835f /gui
parent150de6566ffc1ce102665da0e4bb4bb7c1e0afd6 (diff)
downloadmpv-adc345131f947569f9b6e490119ad9969c09529e.tar.bz2
mpv-adc345131f947569f9b6e490119ad9969c09529e.tar.xz
Fix silly type of guiGetEvent argument to use void * instead of char * and
get rid of some of the insane amount of casts necessary to hide the utter idiocy of the type used before. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30731 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui')
-rw-r--r--gui/interface.c18
-rw-r--r--gui/interface.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/gui/interface.c b/gui/interface.c
index 83e897d267..8040f5c92c 100644
--- a/gui/interface.c
+++ b/gui/interface.c
@@ -523,15 +523,15 @@ static void remove_vf( char * str )
}
}
-int guiGetEvent( int type,char * arg )
+int guiGetEvent( int type,void * arg )
{
const ao_functions_t *audio_out = NULL;
const vo_functions_t *video_out = NULL;
mixer_t *mixer = NULL;
- 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 (guiIntfStruct.mpcontext) {
@@ -543,8 +543,8 @@ int guiGetEvent( int type,char * arg )
switch ( type )
{
case guiXEvent:
- guiIntfStruct.event_struct=(void *)arg;
- wsEvents( wsDisplay,(XEvent *)arg,NULL );
+ guiIntfStruct.event_struct=arg;
+ wsEvents( wsDisplay,arg,NULL );
gtkEventHandling();
break;
case guiCEvent:
@@ -574,12 +574,12 @@ int guiGetEvent( int type,char * arg )
else wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow );
break;
case guiSetContext:
- guiIntfStruct.mpcontext=(void *)arg;
+ guiIntfStruct.mpcontext=arg;
case guiSetDemuxer:
- guiIntfStruct.demuxer=(void *)arg;
+ guiIntfStruct.demuxer=arg;
break;
case guiSetAfilter:
- guiIntfStruct.afilter=(void *)arg;
+ guiIntfStruct.afilter=arg;
break;
case guiSetShVideo:
{
@@ -675,7 +675,7 @@ int guiGetEvent( int type,char * arg )
guiIntfStruct.sh_video=arg;
if ( arg )
{
- sh_video_t * sh = (sh_video_t *)arg;
+ sh_video_t * sh = arg;
guiIntfStruct.FPS=sh->fps;
}
diff --git a/gui/interface.h b/gui/interface.h
index 59d0cbac47..075fa29422 100644
--- a/gui/interface.h
+++ b/gui/interface.h
@@ -163,7 +163,7 @@ extern int use_gui;
void guiInit( void );
void guiDone( void );
-int guiGetEvent( int type,char * arg );
+int guiGetEvent( int type,void * arg );
void guiEventHandling( void );
void guiLoadFont( void );
void guiLoadSubtitle( char * name );