[MPlayer-cvslog] CVS: main mplayer.c,1.817,1.818

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Dec 11 00:04:57 CET 2004


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	mplayer.c 
Log Message:
10l, should check for != NULL before using not after...
fixes speed setting with -nosound, fix by uau on IRC


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.817
retrieving revision 1.818
diff -u -r1.817 -r1.818
--- mplayer.c	2 Dec 2004 14:37:15 -0000	1.817
+++ mplayer.c	10 Dec 2004 23:04:54 -0000	1.818
@@ -923,9 +923,10 @@
  */
 static int build_afilter_chain(sh_audio_t *sh_audio, ao_data_t *ao_data)
 {
-  int new_srate = sh_audio->samplerate * playback_speed;
+  int new_srate;
   if (!sh_audio)
     return 0;
+  new_srate = sh_audio->samplerate * playback_speed;
   if (new_srate != ao_data->samplerate) {
     // limits are taken from libaf/af_resample.c
     if (new_srate < 8000)




More information about the MPlayer-cvslog mailing list