summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-07-27 11:02:29 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-30 15:27:15 +0200
commit637768d0194fda5763bb9844901164d5c181c588 (patch)
tree6c0a271412fe993839c354757146be4b0976953d /src
parent37ee0912d6519a22f81a1adc9c01812997b00d68 (diff)
Blackberry: Fix playlists not advancing to the next track.
The playlist watches for state changes to the EndOfMedia state, which wasn't used in the plugin yet. Change-Id: Ib2a014177df2273cd46baaef1392a73e54daf06c Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/blackberry/bbmediaplayercontrol.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/blackberry/bbmediaplayercontrol.cpp b/src/plugins/blackberry/bbmediaplayercontrol.cpp
index 1fe21de67..e37c880fd 100644
--- a/src/plugins/blackberry/bbmediaplayercontrol.cpp
+++ b/src/plugins/blackberry/bbmediaplayercontrol.cpp
@@ -543,10 +543,12 @@ bool BbMediaPlayerControl::nativeEventFilter(const QByteArray &eventType, void *
// playback is stopped because of this.
// Ignore other stop event sources, souch as calling mmr_stop() ourselves and
// mmr_input_attach().
- if (m_stopEventsToIgnore > 0)
+ if (m_stopEventsToIgnore > 0) {
--m_stopEventsToIgnore;
- else
+ } else {
+ setMediaStatus(QMediaPlayer::EndOfMedia);
stopInternal(IgnoreMmRenderer);
+ }
return false;
}
}