Skip to content
Snippets Groups Projects
Commit b39dd34e authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#14615: Fix default audio codec when creating new account

parent 3e193966
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,21 @@ namespace {
}
}
vector<int>
Account::getDefaultAudioCodecs()
{
vector<int> result;
result.push_back(0);
result.push_back(3);
result.push_back(8);
result.push_back(9);
result.push_back(110);
result.push_back(111);
result.push_back(112);
return result;
}
vector<map<string, string> >
Account::getActiveVideoCodecs() const
{
......
......@@ -144,6 +144,8 @@ class Account : public Serializable {
std::vector<std::map<std::string, std::string> >
getActiveVideoCodecs() const;
static std::vector<int> getDefaultAudioCodecs();
/* Accessor to data structures
* @return The list that reflects the user's choice
*/
......
......@@ -218,8 +218,8 @@ std::vector<int32_t> ConfigurationManager::getActiveAudioCodecList(const std::st
if (acc)
return acc->getActiveAudioCodecs();
else {
ERROR("Could not find account %s", accountID.c_str());
return std::vector<int32_t>();
ERROR("Could not find account %s, returning default", accountID.c_str());
return Account::getDefaultAudioCodecs();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment