mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
nosound fixed. again. :(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1793 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6835c60519
commit
e980241839
@ -803,7 +803,7 @@ if(sh_audio){
|
||||
}
|
||||
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantFindAudioCodec,sh_audio->format);
|
||||
mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf"));
|
||||
free_sh_audio(sh_audio); sh_audio=NULL; d_audio->sh=NULL;
|
||||
sh_audio=d_audio->sh=NULL;
|
||||
break;
|
||||
}
|
||||
if(audio_codec && strcmp(sh_audio->codec->name,audio_codec)) continue;
|
||||
@ -817,7 +817,7 @@ if(sh_audio){
|
||||
mp_msg(MSGT_CPLAYER,MSGL_V,"Initializing audio codec...\n");
|
||||
if(!init_audio(sh_audio)){
|
||||
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CouldntInitAudioCodec);
|
||||
free_sh_audio(sh_audio); sh_audio=NULL; d_audio->sh=NULL;
|
||||
sh_audio=d_audio->sh=NULL;
|
||||
} else {
|
||||
mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: srate=%d chans=%d bps=%d sfmt=0x%X ratio: %d->%d\n",sh_audio->samplerate,sh_audio->channels,sh_audio->samplesize,
|
||||
sh_audio->sample_format,sh_audio->i_bps,sh_audio->o_bps);
|
||||
@ -918,7 +918,7 @@ if(auto_quality>0){
|
||||
if((encode_file=fopen(encode_index_name,"wb")))
|
||||
fclose(encode_file);
|
||||
else encode_index_name=NULL;
|
||||
free_sh_audio(sh_audio); sh_audio=NULL; d_audio->sh=NULL; // disable audio !!!!!
|
||||
sh_audio=d_audio->sh=NULL;
|
||||
}
|
||||
|
||||
// ========== Init keyboard FIFO (connection to libvo) ============
|
||||
@ -1045,7 +1045,7 @@ if(sh_audio){
|
||||
if(!audio_out->init(force_srate?force_srate:sh_audio->samplerate,
|
||||
sh_audio->channels,sh_audio->sample_format,0)){
|
||||
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CannotInitAO);
|
||||
free_sh_audio(sh_audio); sh_audio=NULL; d_audio->sh=NULL;
|
||||
sh_audio=d_audio->sh=NULL;
|
||||
}
|
||||
|
||||
// printf("Audio buffer size: %d bytes, delay: %5.3fs\n",audio_buffer_size,audio_buffer_delay);
|
||||
|
Loading…
Reference in New Issue
Block a user