use fallback for unsupported formats instead of quitting

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12441 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-05-07 16:12:30 +00:00
parent 5397eb9240
commit 138013ca3f
1 changed files with 2 additions and 1 deletions

View File

@ -196,8 +196,9 @@ static int init(int rate,int channels,int format,int flags){
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. */