Commit 10a8544c authored by Benjamin Reis's avatar Benjamin Reis

fix(Settings model) use none deprecated apip to fix build

parent 36aeecf0
......@@ -52,7 +52,7 @@ QStringList SettingsModel::getCaptureDevices () const {
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
QStringList list;
for (const auto &device : core->getSoundDevices()) {
for (const auto &device : core->getSoundDevicesList()) {
if (core->soundDeviceCanCapture(device))
list << ::Utils::coreStringToAppString(device);
}
......@@ -64,7 +64,7 @@ QStringList SettingsModel::getPlaybackDevices () const {
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
QStringList list;
for (const auto &device : core->getSoundDevices()) {
for (const auto &device : core->getSoundDevicesList()) {
if (core->soundDeviceCanPlayback(device))
list << ::Utils::coreStringToAppString(device);
}
......@@ -151,7 +151,7 @@ void SettingsModel::setEchoCancellationEnabled (bool status) {
QStringList SettingsModel::getVideoDevices () const {
QStringList list;
for (const auto &device : CoreManager::getInstance()->getCore()->getVideoDevices())
for (const auto &device : CoreManager::getInstance()->getCore()->getVideoDevicesList())
list << ::Utils::coreStringToAppString(device);
return list;
......
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