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>
// 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;
}
}