[Mplayer-cvslog] CVS: main mplayer.c,1.259,1.260

Arpi of Ize arpi at mplayer.dev.hu
Fri Aug 31 00:56:34 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv14408

Modified Files:
	mplayer.c 
Log Message:
nosound fixed. again. :(

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -r1.259 -r1.260
--- mplayer.c	30 Aug 2001 21:49:24 -0000	1.259
+++ mplayer.c	30 Aug 2001 22:56:27 -0000	1.260
@@ -803,7 +803,7 @@
       }
       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 @@
   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((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(!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);




More information about the MPlayer-cvslog mailing list