Commit 6bbea44e authored by Max Kellermann's avatar Max Kellermann

output: call send_tag() only if device is on

Why send tags to a device which isn't enabled?
parent 5cf62133
...@@ -396,9 +396,9 @@ void sendMetadataToAudioDevice(const struct tag *tag) ...@@ -396,9 +396,9 @@ void sendMetadataToAudioDevice(const struct tag *tag)
{ {
unsigned int i; unsigned int i;
for (i = 0; i < audioOutputArraySize; ++i) { for (i = 0; i < audioOutputArraySize; ++i)
audio_output_send_tag(&audioOutputArray[i], tag); if (audioDeviceStates[i] == DEVICE_ON)
} audio_output_send_tag(&audioOutputArray[i], tag);
} }
int enableAudioDevice(unsigned int device) int enableAudioDevice(unsigned int device)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment