Mercurial > mplayer.hg
changeset 33648:9bb5d229a60b
Cast arg in guiGetEvent() to void * or remove cast where unnecessary.
author | ib |
---|---|
date | Mon, 27 Jun 2011 10:29:34 +0000 |
parents | 987e79f466f7 |
children | 0f08a24d8109 |
files | command.c libvo/x11_common.c mplayer.c |
diffstat | 3 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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; }
--- 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