Skip to content

Commit

Permalink
🐛 [InputStream] When the default device is selected, make sure we sta…
Browse files Browse the repository at this point in the history
…rt it up if it is not already running
  • Loading branch information
JulesFouchy committed Nov 29, 2023
1 parent db738d2 commit e5a0a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void InputStream::update()
if (std::holds_alternative<UseDefaultDevice>(_selected_device))
{
auto const default_device_id = _backend.getDefaultInputDevice();
if (default_device_id != _current_device_id)
if (default_device_id != _current_device_id || !_backend.isStreamRunning())
set_device(device_info(default_device_id));
}
else
Expand Down

0 comments on commit e5a0a5e

Please sign in to comment.