WMF: fixed MediaPlayer buffering logic.
authorYoann Lopes <yoann.lopes@digia.com>
Fri, 12 Jul 2013 10:30:39 +0000 (12:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 19 Jul 2013 07:42:42 +0000 (09:42 +0200)
commitd599f7319af86265083bae96f21d942aeff24737
tree63275f086d34f5fa31af07e3b4643b6a6b144bef
parente15a2b92b6120a119cf218ab0f0630f23bc45ba5
WMF: fixed MediaPlayer buffering logic.

To have a consistent behavior with other backends, the WMF plugin now
starts the session after loading a media in order to start buffering some
data and correctly notify when the media is buffered.
It was previously reporting a BufferedMedia status only (and wrongly)
after explicitly starting the media player.

Not all source readers (usually a source reader is specific to a file
format) implement the service needed to query buffering progress. In that
case just report the media to be buffered immediately after loading.

Change-Id: I6e6332ae08e96fc789556761e5169b88c36c5e37
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/wmf/player/mfplayersession.cpp