From 4958a1324024105307fe7adf49a9660b580d5b1a Mon Sep 17 00:00:00 2001 From: zneix Date: Sat, 31 Jul 2021 12:27:27 +0200 Subject: [PATCH] QMediaPlayer::setMedia -> QMediaPlayer::setSource References: - https://doc.qt.io/qt-5/qmediaplayer.html#setMedia - https://doc-snapshots.qt.io/qt6-dev/qmediaplayer.html#setSource --- src/controllers/notifications/NotificationController.cpp | 2 +- src/messages/SharedMessageBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/notifications/NotificationController.cpp b/src/controllers/notifications/NotificationController.cpp index a8f870394..ccb814745 100644 --- a/src/controllers/notifications/NotificationController.cpp +++ b/src/controllers/notifications/NotificationController.cpp @@ -112,7 +112,7 @@ void NotificationController::playSound() if (currentPlayerUrl != highlightSoundUrl) { - player->setMedia(highlightSoundUrl); + player->setSource(highlightSoundUrl); currentPlayerUrl = highlightSoundUrl; } diff --git a/src/messages/SharedMessageBuilder.cpp b/src/messages/SharedMessageBuilder.cpp index 884ca5117..066652c40 100644 --- a/src/messages/SharedMessageBuilder.cpp +++ b/src/messages/SharedMessageBuilder.cpp @@ -469,7 +469,7 @@ void SharedMessageBuilder::triggerHighlights() // update the media player url if necessary if (currentPlayerUrl != this->highlightSoundUrl_) { - player->setMedia(this->highlightSoundUrl_); + player->setSource(this->highlightSoundUrl_); currentPlayerUrl = this->highlightSoundUrl_; }