summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-04-28 10:57:18 +0200
committerLars Knoll <lars.knoll@qt.io>2021-05-03 07:06:08 +0000
commit23b5eeb2887b351c673a53bdadf136bcf6b8fd0a (patch)
tree35b1d53151c25f6bfd728c1e1894accd014958bc /examples
parentc372655fdb00095a111940eda581f718f33d3521 (diff)
Cleanup status handling in QMediaPlayer
Remove the UnknownMediaStatus enum (it's really not helpful) and avoid storing a copy of the status in the frontend class. Store the status in the platform media player instance. This requires some further cleanups to avoid that the reimplementations store their own copy. Change-Id: I939e78808f0eaa6a398560661df66c9d986fdd91 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/multimediawidgets/player/player.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/multimediawidgets/player/player.cpp b/examples/multimediawidgets/player/player.cpp
index 0afa721a1..367211b2c 100644
--- a/examples/multimediawidgets/player/player.cpp
+++ b/examples/multimediawidgets/player/player.cpp
@@ -395,7 +395,6 @@ void Player::statusChanged(QMediaPlayer::MediaStatus status)
// handle status message
switch (status) {
- case QMediaPlayer::UnknownMediaStatus:
case QMediaPlayer::NoMedia:
case QMediaPlayer::LoadedMedia:
setStatusInfo(QString());