summary refs log tree commit diff
path: root/src/voip/CallManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/voip/CallManager.cpp')
-rw-r--r--src/voip/CallManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/voip/CallManager.cpp b/src/voip/CallManager.cpp
index 0ef14db9..9a610819 100644
--- a/src/voip/CallManager.cpp
+++ b/src/voip/CallManager.cpp
@@ -173,11 +173,11 @@ CallManager::CallManager(QObject *parent)
       });
 
     connect(&player_,
-            &QMediaPlayer::error,
+            &QMediaPlayer::errorOccurred,
             this,
-            [this]() {
+            [this](QMediaPlayer::Error error, QString errorString) {
                 stopRingtone();
-                switch (player_.error()) {
+                switch (error) {
                 case QMediaPlayer::FormatError:
                 case QMediaPlayer::ResourceError:
                     nhlog::ui()->error("WebRTC: valid ringtone file not found");
@@ -186,7 +186,7 @@ CallManager::CallManager(QObject *parent)
                     nhlog::ui()->error("WebRTC: access to ringtone file denied");
                     break;
                 default:
-                    nhlog::ui()->error("WebRTC: unable to play ringtone");
+                    nhlog::ui()->error("WebRTC: unable to play ringtone, {}", errorString.toStdString());
                     break;
                 }
             });