[MPlayer-cvslog] CVS: main/libao2 ao_pcm.c,1.33,1.34

Diego Biurrun CVS syncmail at mplayerhq.hu
Sun May 14 12:21:58 CEST 2006


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv11592/libao2

Modified Files:
	ao_pcm.c 
Log Message:
Only set the default output filename when it was not passed on the command
line.  Noticed by Corey Hickey.


Index: ao_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_pcm.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- ao_pcm.c	13 May 2006 19:04:39 -0000	1.33
+++ ao_pcm.c	14 May 2006 10:21:56 -0000	1.34
@@ -93,9 +93,10 @@
 	if (subopt_parse(ao_subdevice, subopts) != 0) {
 	  return 0;
 	}
-
-	ao_outputfilename =
-	      strdup((ao_pcm_waveheader)?"audiodump.wav":"audiodump.pcm");
+	if (!ao_outputfilename){
+	  ao_outputfilename =
+	    strdup(ao_pcm_waveheader?"audiodump.wav":"audiodump.pcm");
+	}
 
 	/* bits is only equal to format if (format == 8) or (format == 16);
 	   this means that the following "if" is a kludge and should




More information about the MPlayer-cvslog mailing list