# HG changeset patch # User ib # Date 1309170574 0 # Node ID 9bb5d229a60b4541c8e67bdbc2110e5417ad73c4 # Parent 987e79f466f7f29cb90090d8d70f833a4c876dc9 Cast arg in guiGetEvent() to void * or remove cast where unnecessary. diff -r 987e79f466f7 -r 9bb5d229a60b command.c --- a/command.c Mon Jun 27 10:04:05 2011 +0000 +++ b/command.c Mon Jun 27 10:29:34 2011 +0000 @@ -1075,7 +1075,7 @@ case M_PROPERTY_STEP_DOWN: #ifdef CONFIG_GUI if (use_gui) - guiGetEvent(guiIEvent, (char *) MP_CMD_VO_FULLSCREEN); + guiGetEvent(guiIEvent, (void *) MP_CMD_VO_FULLSCREEN); else #endif if (vo_config_count) diff -r 987e79f466f7 -r 9bb5d229a60b libvo/x11_common.c --- a/libvo/x11_common.c Mon Jun 27 10:04:05 2011 +0000 +++ b/libvo/x11_common.c Mon Jun 27 10:29:34 2011 +0000 @@ -821,7 +821,7 @@ #ifdef CONFIG_GUI if (use_gui) { - guiGetEvent(0, (char *) &Event); + guiGetEvent(0, &Event); if (vo_window != Event.xany.window) continue; } diff -r 987e79f466f7 -r 9bb5d229a60b mplayer.c --- a/mplayer.c Mon Jun 27 10:04:05 2011 +0000 +++ b/mplayer.c Mon Jun 27 10:29:34 2011 +0000 @@ -584,7 +584,7 @@ uninit_audio(mpctx->sh_audio); #ifdef CONFIG_GUI if (use_gui) - guiGetEvent(guiSetAfilter, (char *)NULL); + guiGetEvent(guiSetAfilter, NULL); #endif mpctx->sh_audio = NULL; mpctx->mixer.afilter = NULL; @@ -1334,7 +1334,7 @@ if (!sh_audio) { #ifdef CONFIG_GUI if (use_gui) - guiGetEvent(guiSetAfilter, (char *)NULL); + guiGetEvent(guiSetAfilter, NULL); #endif mpctx->mixer.afilter = NULL; return 0; @@ -1359,7 +1359,7 @@ mpctx->mixer.afilter = sh_audio->afilter; #ifdef CONFIG_GUI if (use_gui) - guiGetEvent(guiSetAfilter, (char *)sh_audio->afilter); + guiGetEvent(guiSetAfilter, sh_audio->afilter); #endif return result; } @@ -3097,7 +3097,7 @@ guiEventHandling(); guiGetEvent(guiReDraw, NULL); if ((cmd = mp_input_get_cmd(0, 0, 0)) != NULL) { - guiGetEvent(guiIEvent, (char *)cmd->id); + guiGetEvent(guiIEvent, (void *)cmd->id); mp_cmd_free(cmd); } } @@ -3244,7 +3244,7 @@ #ifdef CONFIG_GUI if (use_gui) - guiGetEvent(guiSetStream, (char *)mpctx->stream); + guiGetEvent(guiSetStream, mpctx->stream); #endif if (mpctx->file_format == DEMUXER_TYPE_PLAYLIST) { @@ -3679,13 +3679,13 @@ if (use_gui) { guiInfo.AudioChannels = mpctx->sh_audio ? mpctx->sh_audio->channels : 0; if (!mpctx->sh_video && mpctx->sh_audio) - guiGetEvent(guiSetAudioOnly, (char *)1); + guiGetEvent(guiSetAudioOnly, (void *)1); else - guiGetEvent(guiSetAudioOnly, (char *)0); - guiGetEvent(guiSetFileFormat, (char *)mpctx->demuxer->file_format); - if (guiGetEvent(guiSetValues, (char *)mpctx->sh_video)) + guiGetEvent(guiSetAudioOnly, (void *)0); + guiGetEvent(guiSetFileFormat, (void *)mpctx->demuxer->file_format); + if (guiGetEvent(guiSetValues, mpctx->sh_video)) goto goto_next_file; - guiGetEvent(guiSetDemuxer, (char *)mpctx->demuxer); + guiGetEvent(guiSetDemuxer, mpctx->demuxer); } #endif