diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-22 15:19:35 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-22 15:19:35 +0000 |
commit | d171fe9a2f016899f7a05916382e89fbb7c3869e (patch) | |
tree | e2fdfe434ba60ffda471cbba75d89b92e15d93dd /src | |
parent | 8502eeee6ed0fd620397c5b87d9862e256811712 (diff) | |
download | mpd-d171fe9a2f016899f7a05916382e89fbb7c3869e.tar.gz mpd-d171fe9a2f016899f7a05916382e89fbb7c3869e.tar.xz mpd-d171fe9a2f016899f7a05916382e89fbb7c3869e.zip |
fix segfault when resuming from pause
git-svn-id: https://svn.musicpd.org/mpd/trunk@2293 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c index b897d8bc9..79645244d 100644 --- a/src/audio.c +++ b/src/audio.c @@ -150,6 +150,7 @@ int isCurrentAudioFormat(AudioFormat * audioFormat) { int openAudioDevice(AudioFormat * audioFormat) { if(!aoOutput->open || !isCurrentAudioFormat(audioFormat)) { + if(!audioFormat) return -1; copyAudioFormat(&audio_format, audioFormat); if(shoutOutput) openAudioOutput(shoutOutput, audioFormat); return openAudioOutput(aoOutput, audioFormat); |