output: call send_tag() only if device is on
Why send tags to a device which isn't enabled?
This commit is contained in:
parent
5cf6213344
commit
6bbea44e91
@ -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)
|
||||||
|
if (audioDeviceStates[i] == DEVICE_ON)
|
||||||
audio_output_send_tag(&audioOutputArray[i], tag);
|
audio_output_send_tag(&audioOutputArray[i], tag);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int enableAudioDevice(unsigned int device)
|
int enableAudioDevice(unsigned int device)
|
||||||
|
Loading…
Reference in New Issue
Block a user