[Mplayer-cvslog] CVS: main/libaf af.c,1.26,1.27
Richard Felker CVS
rfelker at mplayerhq.hu
Tue Jan 27 07:45:45 CET 2004
Update of /cvsroot/mplayer/main/libaf
In directory mail:/var2/tmp/cvs-serv26072/libaf
Modified Files:
af.c
Log Message:
if the user wants fast, use fast code! otherwise the user has to put
af=resample=44100:0:0 in the config file, which will resample all
files, not just ones that need it. libaf still sux!
Index: af.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- af.c 21 Sep 2003 12:16:16 -0000 1.26
+++ af.c 27 Jan 2004 06:45:43 -0000 1.27
@@ -383,6 +383,12 @@
if(!af || (AF_OK != af->control(af,AF_CONTROL_RESAMPLE_RATE,
&(s->output.rate))))
return -1;
+ // Use lin int if the user wants fast
+ if ((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_FAST) {
+ char args[32];
+ sprintf(args, "%d:0:0", s->output.rate);
+ af->control(af, AF_CONTROL_COMMAND_LINE, args);
+ }
if(AF_OK != af_reinit(s,af))
return -1;
}
More information about the MPlayer-cvslog
mailing list