output: call send_tag() only if device is on

Why send tags to a device which isn't enabled?
This commit is contained in:
Max Kellermann 2008-09-24 07:21:58 +02:00
parent 5cf6213344
commit 6bbea44e91

View File

@ -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)