[MPlayer-cvslog] CVS: main cfg-mplayer.h, 1.235, 1.236 mplayer.c, 1.823, 1.824
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Mon Dec 27 20:34:44 CET 2004
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv25604
Modified Files:
cfg-mplayer.h mplayer.c
Log Message:
Do not use audio plugins anymore
Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.235
retrieving revision 1.236
diff -u -r1.235 -r1.236
--- cfg-mplayer.h 21 Dec 2004 20:33:50 -0000 1.235
+++ cfg-mplayer.h 27 Dec 2004 19:34:42 -0000 1.236
@@ -122,18 +122,6 @@
/* from libvo/aspect.c */
extern float monitor_aspect;
-/* Options related to audio out plugins */
-m_option_t ao_plugin_conf[]={
- {"list", &ao_plugin_cfg.plugin_list, CONF_TYPE_STRING, 0, 0, 0, NULL},
- {"delay", &ao_plugin_cfg.pl_delay_len, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
- {"format", &ao_plugin_cfg.pl_format_type, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
- {"fout", &ao_plugin_cfg.pl_resample_fout, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
- {"volume", &ao_plugin_cfg.pl_volume_volume, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
- {"mul", &ao_plugin_cfg.pl_extrastereo_mul, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL},
- {"softclip", &ao_plugin_cfg.pl_volume_softclip, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {NULL, NULL, 0, 0, 0, 0, NULL}
-};
-
extern int sws_flags;
extern int readPPOpt(void *conf, char *arg);
extern void revertPPOpt(void *conf, char* opt);
@@ -166,7 +154,7 @@
{"noontop", &vo_ontop, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {"aop", ao_plugin_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
+ {"aop", "-aop is deprecated, use -af instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"dsp", "Use -ao oss:dsp_path.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"mixer-channel", &mixer_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.823
retrieving revision 1.824
diff -u -r1.823 -r1.824
--- mplayer.c 27 Dec 2004 17:30:12 -0000 1.823
+++ mplayer.c 27 Dec 2004 19:34:42 -0000 1.824
@@ -58,7 +58,6 @@
#endif
#include "libao2/audio_out.h"
-#include "libao2/audio_plugin.h"
#include "codec-cfg.h"
@@ -389,6 +388,9 @@
inited_flags&=~INITED_ACODEC;
current_module="uninit_acodec";
if(sh_audio) uninit_audio(sh_audio);
+#ifdef HAVE_NEW_GUI
+ guiGetEvent(guiSetAfilter, (char *)NULL);
+#endif
sh_audio=NULL;
}
@@ -927,6 +929,9 @@
int result;
if (!sh_audio)
{
+#ifdef HAVE_NEW_GUI
+ guiGetEvent(guiSetAfilter, (char *)NULL);
+#endif
mixer.afilter = NULL;
return 0;
}
@@ -945,6 +950,9 @@
af_fmt2bits(ao_data->format) / 8, /* ao_data.bps, */
ao_data->outburst * 4, ao_data->buffersize);
mixer.afilter = sh_audio->afilter;
+#ifdef HAVE_NEW_GUI
+ guiGetEvent(guiSetAfilter, (char *)sh_audio->afilter);
+#endif
return result;
}
@@ -2105,7 +2113,7 @@
#endif
current_module="ao2_init";
if(!(audio_out=init_best_audio_out(audio_driver_list,
- (ao_plugin_cfg.plugin_list!=NULL), // plugin flag
+ 0, // plugin flag
force_srate?force_srate:ao_data.samplerate,
audio_output_channels?audio_output_channels:ao_data.channels,
audio_output_format?audio_output_format:ao_data.format,0))){
More information about the MPlayer-cvslog
mailing list