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.command = CmdNone;
|
||||||
m_request.prevCmd = CmdNone;
|
m_request.prevCmd = CmdNone;
|
||||||
|
|
||||||
changeStatus(QMediaPlayer::EndOfMedia);
|
|
||||||
m_varStart.vt = VT_I8;
|
m_varStart.vt = VT_I8;
|
||||||
//keep reporting the final position after end of media
|
//keep reporting the final position after end of media
|
||||||
m_varStart.hVal.QuadPart = m_duration;
|
m_varStart.hVal.QuadPart = m_duration;
|
||||||
|
emit positionChanged(position());
|
||||||
|
|
||||||
|
changeStatus(QMediaPlayer::EndOfMedia);
|
||||||
break;
|
break;
|
||||||
case MEEndOfPresentationSegment:
|
case MEEndOfPresentationSegment:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user