Skip to content
Snippets Groups Projects
Commit f7aaf32c authored by Philippe Gorley's avatar Philippe Gorley Committed by Kateryna Kostiuk
Browse files

audio_input: switch to mic on empty resource

Change-Id: Ia65bdc80217c407d43b1c4cb064530c04a94a851
parent c30db636
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,8 @@ AudioInput::switchInput(const std::string& resource)
foundDevOpts_.swap(p);
if (resource.empty()) {
devOpts_ = {};
if (initDevice(""))
foundDevOpts(devOpts_);
switchPending_ = true;
futureDevOpts_ = foundDevOpts_.get_future();
return futureDevOpts_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment