WMF: emit positionChanged() signal when reaching the end of a media.
This is necessary for QML MediaPlayer to report the correct position at the end of a media. Change-Id: Ifac2a721b850c726305d1a98e360da638b1fa87a Reviewed-by: Christian Stromme <christian.stromme@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
43bc5f65d2
commit
acbd998749
@@ -1936,10 +1936,12 @@ void MFPlayerSession::handleSessionEvent(IMFMediaEvent *sessionEvent)
|
||||
m_request.command = CmdNone;
|
||||
m_request.prevCmd = CmdNone;
|
||||
|
||||
changeStatus(QMediaPlayer::EndOfMedia);
|
||||
m_varStart.vt = VT_I8;
|
||||
//keep reporting the final position after end of media
|
||||
m_varStart.hVal.QuadPart = m_duration;
|
||||
emit positionChanged(position());
|
||||
|
||||
changeStatus(QMediaPlayer::EndOfMedia);
|
||||
break;
|
||||
case MEEndOfPresentationSegment:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user