summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Osterfeld <frank.osterfeld.qnx@kdab.com>2013-11-28 10:27:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-30 17:59:02 +0100
commitea9f9788d502d4a4307a464d87a00be198df09ad (patch)
tree5670c844d690bbeb05fe304a59c5065c6a3e2f6f
parent288e49d49308f84afa180086aebb9ce61738e626 (diff)
QNX/PPS: Fix end-of-track handlingv5.2.0
The state to check for is actually "stopped", not "STOPPED". Fixes end-of-track detection. Task-number: QTBUG-35189 Change-Id: Ifa2f0635b31ef8c584c1800ef870c0dbef2b1daf Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Tobias Koenig <tobias.koenig.qnx@kdab.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
-rw-r--r--src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp b/src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp
index eb0842fb..b54c7963 100644
--- a/src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp
+++ b/src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp
@@ -57,7 +57,7 @@ PpsMediaPlayerControl::PpsMediaPlayerControl(QObject *parent)
m_ppsStatusFd(-1),
m_ppsStateNotifier(0),
m_ppsStateFd(-1)
- , m_previouslySeenState("STOPPED")
+ , m_previouslySeenState("stopped")
{
openConnection();
}
@@ -177,7 +177,7 @@ void PpsMediaPlayerControl::ppsReadyRead(int fd)
if (pps_decoder_get_string(&decoder, "state", &value) == PPS_DECODER_OK) {
const QByteArray state = value;
- if (state != m_previouslySeenState && state == "STOPPED")
+ if (state != m_previouslySeenState && state == "stopped")
handleMmStopped();
m_previouslySeenState = state;
}