Mercurial > mplayer.hg
changeset 14140:337aa26e20b5
10l, should check for != NULL before using not after...
fixes speed setting with -nosound, fix by uau on IRC
author | reimar |
---|---|
date | Fri, 10 Dec 2004 23:04:54 +0000 |
parents | d01bd7878ce7 |
children | 38050abfa2ee |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Thu Dec 09 19:41:10 2004 +0000 +++ b/mplayer.c Fri Dec 10 23:04:54 2004 +0000 @@ -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)