WMF: fix some issues with our custom video sink.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 17 Mar 2014 17:38:10 +0000 (18:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 18 Mar 2014 13:48:02 +0000 (14:48 +0100)
commit04edeafade9058bde6d6dd58e6b1a89bace2fd50
tree21d44555bf5bdf27691286d27a6907544d3ca88e
parent4855707ed751df93a314d875b7c1721bef738136
WMF: fix some issues with our custom video sink.

- When scrubbing, request frames only one at a time.
- Discard frames when too late or too much in advance
- Fix integer overflow causing undefined behavior

[ChangeLog][QtMultimedia][Windows] Fixed video playback playing at
twice the normal rate after reaching 3:34.
[ChangeLog][QtMultimedia][Windows] Fixed video playback that could
freeze after seeking to a different position.

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