aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-29 20:39:48 +0100
committerMax Kellermann <max@duempel.org>2008-10-29 20:39:48 +0100
commit030238bb1035acc825cebe793be51eb034f92e4f (patch)
tree6691c82d4d170851fb5e49d5dab3965b038e6ee8 /src
parentb967702059d994909de0f62b9eaea1cbfbc0c226 (diff)
downloadmpd-030238bb1035acc825cebe793be51eb034f92e4f.tar.gz
mpd-030238bb1035acc825cebe793be51eb034f92e4f.tar.xz
mpd-030238bb1035acc825cebe793be51eb034f92e4f.zip
audio: removed variable "audioOpened"
This variable is never read, and can be removed.
Diffstat (limited to 'src')
-rw-r--r--src/audio.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/audio.c b/src/audio.c
index bfebac4fc..cd029c09b 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -45,8 +45,6 @@ static unsigned int audioOutputArraySize;
*/
static bool *audioDeviceStates;
-static uint8_t audioOpened;
-
static unsigned int audio_output_count(void)
{
unsigned int nr = 0;
@@ -315,15 +313,11 @@ int openAudioDevice(const struct audio_format *audioFormat)
ret = 0;
}
- if (ret == 0)
- audioOpened = 1;
- else {
+ if (ret != 0) {
/* close all devices if there was an error */
for (i = 0; i < audioOutputArraySize; ++i) {
audio_output_close(&audioOutputArray[i]);
}
-
- audioOpened = 0;
}
return ret;
@@ -362,8 +356,6 @@ void closeAudioDevice(void)
for (i = 0; i < audioOutputArraySize; ++i)
audio_output_close(&audioOutputArray[i]);
-
- audioOpened = 0;
}
void sendMetadataToAudioDevice(const struct tag *tag)