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
......@@ -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_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment