[MPlayer-dev-eng] misuse of ao_plugin_cfg.plugin_list?
Dominik Mierzejewski
dominik at rangers.eu.org
Wed Oct 9 23:34:06 CEST 2002
Hi.
I've been going through the remaining compilation warnings and came across
this pearl:
mplayer.c:1281: warning: passing arg 2 of `init_best_audio_out' makes integer from pointer without a cast
Relevant code snippet from mplayer.c
[...]
if(!(audio_out=init_best_audio_out(audio_driver_list,
(ao_plugin_cfg.plugin_list), // plugin flag
^^^^^^^^^^^^^^^^^^^^^^^^^ this is char *
force_srate?force_srate:sh_audio->samplerate*playback_speed,
audio_output_channels?audio_output_channels:
sh_audio->channels,audio_output_format?audio_output_format:
sh_audio->sample_format,0))){
[...]
... but init_best_audio_out expects int instead:
libao2/audio_out.h:
[...]
ao_functions_t* init_best_audio_out(char** ao_list,int use_plugin,int rate,int channels,int format,int flags);
[...]
More coming soon... :-)
--
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
-- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
More information about the MPlayer-dev-eng
mailing list