Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
diff --git a/libs/JUCE/modules/juce_audio_devices/native/juce_JackAudio_linux.cpp b/libs/JUCE/modules/juce_audio_devices/native/juce_JackAudio_linux.cpp
|
|
index 4cce7016f..25554a7cd 100644
|
|
--- a/libs/JUCE/modules/juce_audio_devices/native/juce_JackAudio_linux.cpp
|
|
+++ b/libs/JUCE/modules/juce_audio_devices/native/juce_JackAudio_linux.cpp
|
|
@@ -291,7 +291,6 @@ public:
|
|
juce::jack_on_info_shutdown (client, infoShutdownCallback, this);
|
|
juce::jack_set_xrun_callback (client, xrunCallback, this);
|
|
juce::jack_activate (client);
|
|
- deviceIsOpen = true;
|
|
|
|
if (! inputChannels.isZero())
|
|
{
|
|
@@ -336,6 +335,7 @@ public:
|
|
}
|
|
|
|
updateActivePorts();
|
|
+ deviceIsOpen = true;
|
|
|
|
return lastError;
|
|
}
|
|
@@ -525,7 +525,8 @@ private:
|
|
static void portConnectCallback (jack_port_id_t, jack_port_id_t, int, void* arg)
|
|
{
|
|
if (JackAudioIODevice* device = static_cast<JackAudioIODevice*> (arg))
|
|
- device->mainThreadDispatcher.updateActivePorts();
|
|
+ if (device->isOpen())
|
|
+ device->mainThreadDispatcher.updateActivePorts();
|
|
}
|
|
|
|
static void threadInitCallback (void* /* callbackArgument */)
|