mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-01 03:19:23 +00:00
fix(Settings model) use none deprecated apip to fix build
This commit is contained in:
parent
36aeecf0b0
commit
10a8544ce7
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue