aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-08-07 17:55:15 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-08-07 17:55:15 +0000
commit7cf28560e1b762d86aebb2ae898bc2d22e3aff32 (patch)
tree6e7e1f1b172f63d2a74ad959394f57405e12cf78 /src
parent8e8fd7f1d7b486281db76c6d48e94a9c3f9e3cf4 (diff)
downloadmpd-7cf28560e1b762d86aebb2ae898bc2d22e3aff32.tar.gz
mpd-7cf28560e1b762d86aebb2ae898bc2d22e3aff32.tar.xz
mpd-7cf28560e1b762d86aebb2ae898bc2d22e3aff32.zip
Eliminate unnecessary use of a variable
git-svn-id: https://svn.musicpd.org/mpd/trunk@4586 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audio.c3
1 files changed, 1 insertions, 2 deletions
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) *