Attempt to fix certain ping sound issues on Arch Linux (#4285)

This commit is contained in:
Thomas Petersen
2023-01-16 16:34:05 -03:00
committed by GitHub
parent 9255374720
commit d5a0420f74
2 changed files with 7 additions and 3 deletions
+3 -2
View File
@@ -234,8 +234,9 @@ void SharedMessageBuilder::triggerHighlights()
{
if (auto player = getPlayer())
{
// update the media player url if necessary
if (currentPlayerUrl != this->highlightSoundUrl_)
// Set media if the highlight sound url has changed, or if media is buffered
if (currentPlayerUrl != this->highlightSoundUrl_ ||
player->mediaStatus() == QMediaPlayer::BufferedMedia)
{
player->setMedia(this->highlightSoundUrl_);