From efed61af44149843898b5967e56892fa65f8d4e1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Jul 2023 19:57:55 +0200 Subject: [PATCH] Amend d899441df1, fix duplicate device map entries --- libs/backends/alsa/alsa_audiobackend.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index 7f25c7ee0e..534bdca700 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -1052,6 +1052,7 @@ AlsaAudioBackend::_start (bool for_latency_measurement) _midi_device_thread_active = listen_for_midi_device_changes (); + devices.clear (); get_alsa_audio_device_names (devices, (AlsaDuplex)slave_duplex); if (!slave_device.empty () && (di = devices.find (slave_device)) != devices.end ()) {