[Mplayer-cvslog] CVS: main/libao2 ao_sdl.c,1.30,1.31

Reimar Döffinger CVS syncmail at mplayerhq.hu
Fri May 7 18:12:32 CEST 2004


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	ao_sdl.c 
Log Message:
use fallback for unsupported formats instead of quitting


Index: ao_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sdl.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ao_sdl.c	7 Apr 2004 17:53:42 -0000	1.30
+++ ao_sdl.c	7 May 2004 16:12:30 -0000	1.31
@@ -196,8 +196,9 @@
 		aspec.format = AUDIO_U16MSB;
 	    break;
 	    default:
+                aspec.format = AUDIO_S16LSB;
+                ao_data.format = AFMT_S16_LE;
                 mp_msg(MSGT_AO,MSGL_WARN,"SDL: Unsupported audio format: 0x%x.\n", format);
-                return 0;
 	}
 
 	/* The desired audio frequency in samples-per-second. */




More information about the MPlayer-cvslog mailing list