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 <thomas.mcguire@kdab.com> Reviewed-by: Tobias Koenig <tobias.koenig.qnx@kdab.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
committed by
The Qt Project
parent
288e49d493
commit
ea9f9788d5
@@ -57,7 +57,7 @@ PpsMediaPlayerControl::PpsMediaPlayerControl(QObject *parent)
|
|||||||
m_ppsStatusFd(-1),
|
m_ppsStatusFd(-1),
|
||||||
m_ppsStateNotifier(0),
|
m_ppsStateNotifier(0),
|
||||||
m_ppsStateFd(-1)
|
m_ppsStateFd(-1)
|
||||||
, m_previouslySeenState("STOPPED")
|
, m_previouslySeenState("stopped")
|
||||||
{
|
{
|
||||||
openConnection();
|
openConnection();
|
||||||
}
|
}
|
||||||
@@ -177,7 +177,7 @@ void PpsMediaPlayerControl::ppsReadyRead(int fd)
|
|||||||
|
|
||||||
if (pps_decoder_get_string(&decoder, "state", &value) == PPS_DECODER_OK) {
|
if (pps_decoder_get_string(&decoder, "state", &value) == PPS_DECODER_OK) {
|
||||||
const QByteArray state = value;
|
const QByteArray state = value;
|
||||||
if (state != m_previouslySeenState && state == "STOPPED")
|
if (state != m_previouslySeenState && state == "stopped")
|
||||||
handleMmStopped();
|
handleMmStopped();
|
||||||
m_previouslySeenState = state;
|
m_previouslySeenState = state;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user