aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio.c b/src/audio.c
index 7917ca526..f3de2285e 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -396,9 +396,9 @@ void sendMetadataToAudioDevice(const struct tag *tag)
{
unsigned int i;
- for (i = 0; i < audioOutputArraySize; ++i) {
- audio_output_send_tag(&audioOutputArray[i], tag);
- }
+ for (i = 0; i < audioOutputArraySize; ++i)
+ if (audioDeviceStates[i] == DEVICE_ON)
+ audio_output_send_tag(&audioOutputArray[i], tag);
}
int enableAudioDevice(unsigned int device)