From 7cf28560e1b762d86aebb2ae898bc2d22e3aff32 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Mon, 7 Aug 2006 17:55:15 +0000 Subject: Eliminate unnecessary use of a variable git-svn-id: https://svn.musicpd.org/mpd/trunk@4586 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/audio.c b/src/audio.c index 203c37246..30d9277e6 100644 --- a/src/audio.c +++ b/src/audio.c @@ -323,14 +323,13 @@ static int flushAudioBuffer(void) int openAudioDevice(AudioFormat * audioFormat) { - int isCurrentFormat = isCurrentAudioFormat(audioFormat); int ret = -1; int i; if (!audioOutputArray) return -1; - if (!audioOpened || !isCurrentFormat) { + if (!audioOpened || !isCurrentAudioFormat(audioFormat)) { flushAudioBuffer(); copyAudioFormat(&audio_format, audioFormat); audioBufferSize = (audio_format.bits >> 3) * -- cgit v1.2.3