Mercurial > mplayer.hg
diff gui/mplayer/gtk/opts.c @ 32741:872b714d47bd
Cast properly (to avoid compiler warnings).
author | ib |
---|---|
date | Sat, 29 Jan 2011 16:39:52 +0000 |
parents | fbe5c829c69b |
children | 6e22bcc85ac5 |
line wrap: on
line diff
--- a/gui/mplayer/gtk/opts.c Sat Jan 29 15:13:55 2011 +0000 +++ b/gui/mplayer/gtk/opts.c Sat Jan 29 16:39:52 2011 +0000 @@ -1557,33 +1557,33 @@ case 1: #ifdef CONFIG_OSS_AUDIO if (strncmp(ao_driver[0], "oss", 3) == 0) { - gfree(>kAOOSSDevice); + gfree((void **) >kAOOSSDevice); gtkAOOSSDevice = gstrdup(getGtkEntryText(CEAudioDevice)); - gfree(>kAOOSSMixer); + gfree((void **) >kAOOSSMixer); gtkAOOSSMixer = gstrdup(getGtkEntryText(CEAudioMixer)); - gfree(>kAOOSSMixerChannel); + gfree((void **) >kAOOSSMixerChannel); gtkAOOSSMixerChannel = gstrdup(getGtkEntryText(CEAudioMixerChannel)); } #endif #ifdef CONFIG_ALSA if (strncmp(ao_driver[0], "alsa", 4) == 0) { - gfree(>kAOALSADevice); + gfree((void **) >kAOALSADevice); gtkAOALSADevice = gstrdup(getGtkEntryText(CEAudioDevice)); - gfree(>kAOALSAMixer); + gfree((void **) >kAOALSAMixer); gtkAOALSAMixer = gstrdup(getGtkEntryText(CEAudioMixer)); - gfree(>kAOALSAMixerChannel); + gfree((void **) >kAOALSAMixerChannel); gtkAOALSAMixerChannel = gstrdup(getGtkEntryText(CEAudioMixerChannel)); } #endif #ifdef CONFIG_SDL if (strncmp(ao_driver[0], "sdl", 3) == 0) { - gfree(>kAOSDLDriver); + gfree((void **) >kAOSDLDriver); gtkAOSDLDriver = gstrdup(getGtkEntryText(CEAudioDevice)); } #endif #ifdef CONFIG_ESD if (strncmp(ao_driver[0], "esd", 3) == 0) { - gfree(>kAOESDDevice); + gfree((void **) >kAOESDDevice); gtkAOESDDevice = gstrdup(getGtkEntryText(CEAudioDevice)); } #endif