summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto@qt.io>2022-05-05 17:04:47 +1000
committerRafael Roquetto <rafael.roquetto@qt.io>2022-05-06 08:43:41 +1000
commitb135ba6d10680864d5c0ec0eb0847db43e0f162b (patch)
tree167fb5c3f02f58d37c419b914f446f4e8e3ae011
parent5f79700c5b3079afd5723b8908af060d7e813d33 (diff)
QQnxMediaPlayer: fire correct state when media is changed
Because resetting the media causes QQnxMediaPlayer to detach from mm-renderer, we no longer receive state updates from the backend, requiring the 'Stopped' state to be fired explicitly. Change-Id: I883aa79a58081ce58a70789ca36968e79b9a836e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r--src/plugins/multimedia/qnx/mediaplayer/qqnxmediaplayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/multimedia/qnx/mediaplayer/qqnxmediaplayer.cpp b/src/plugins/multimedia/qnx/mediaplayer/qqnxmediaplayer.cpp
index 84fb4785b..802b5bc59 100644
--- a/src/plugins/multimedia/qnx/mediaplayer/qqnxmediaplayer.cpp
+++ b/src/plugins/multimedia/qnx/mediaplayer/qqnxmediaplayer.cpp
@@ -740,6 +740,7 @@ void QQnxMediaPlayer::setMedia(const QUrl &media, QIODevice *stream)
stop();
detach();
+ stateChanged(QMediaPlayer::StoppedState);
mediaStatusChanged(QMediaPlayer::LoadingMedia);
m_media = media;