WMF: fixed QMediaPlayer changing to EndOfMedia status too early.
authorYoann Lopes <yoann.lopes@digia.com>
Tue, 30 Jul 2013 12:24:48 +0000 (14:24 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 16 Aug 2013 13:30:10 +0000 (15:30 +0200)
commit291f1229feff087ac9a850ec7a92152f1b69af58
treebb1da2a25e4dc0328f3c32558acc2c185515a541
parentbdf0cc7a168e88c5692831ada7f209ce3b41a501
WMF: fixed QMediaPlayer changing to EndOfMedia status too early.

It was changing to EndOfMedia status and explicitly stopping playback
when receiving the MEEndOfPresentation event from the WMF session.
However, this event means that all data has bean read from the source but
not necessarily played yet. According to the documentation, playback is
done when the MESessionEnded event is sent. It now reports the EndOfMedia
status at that moment instead. stop() is not explicitly called anymore since
MESessionEnded also implies the session has stopped.

Task-number: QTBUG-30825
Change-Id: I6c6c09e736fe33f7cf17c75038ea7be1b5701a1c
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/wmf/player/mfplayersession.cpp