From: Frank Osterfeld Date: Thu, 28 Nov 2013 09:27:46 +0000 (+0100) Subject: QNX/PPS: Fix end-of-track handling X-Git-Tag: accepted/tizen/generic/20140129.173457~36^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea9f9788d502d4a4307a464d87a00be198df09ad;p=platform%2Fupstream%2Fqtmultimedia.git QNX/PPS: Fix end-of-track handling 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 Reviewed-by: Tobias Koenig Reviewed-by: Rafael Roquetto --- diff --git a/src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp b/src/plugins/qnx/mediaplayer/ppsmediaplayercontrol.cpp index eb0842f..b54c796 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; }