From bd736d7f37a3993f92c3f3557be5a52e7386f92c Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Thu, 9 Feb 2023 23:04:28 +0800 Subject: [PATCH] fix: qmultimedia qmediaplayer can not play the next audio in qt6.4.2 --- multimediaaudioplayer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/multimediaaudioplayer.cc b/multimediaaudioplayer.cc index de325cab..1d482ce9 100644 --- a/multimediaaudioplayer.cc +++ b/multimediaaudioplayer.cc @@ -44,6 +44,7 @@ QString MultimediaAudioPlayer::play( const char * data, int size ) void MultimediaAudioPlayer::stop() { + player.stop(); #if (QT_VERSION < QT_VERSION_CHECK(6,0,0)) player.setMedia( QMediaContent() ); // Forget about audioBuffer. #endif