WMF: fixed unresolved topologies when using the custom MediaSink.
authorYoann Lopes <yoann.lopes@digia.com>
Wed, 23 Jan 2013 13:27:40 +0000 (14:27 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 23 Jan 2013 17:31:54 +0000 (18:31 +0100)
commit02add40392f1f708a1875f7088a853aa12ffca62
treeb5e1b45f7eb975ee9511903b4dfa58f809962663
parent381bfe879c2a324531a63e4cc71590bc7fb647db
WMF: fixed unresolved topologies when using the custom MediaSink.

When using our custom MediaSink with RGB formats, Media Foundation fails
sometimes to resolve the topology. Inserting ourselves a ColorConverter
transform in the topology resolves the problem.

The ColorConverter transform cannot handle dynamic frame size changes
(this can happen with H264 videos for example) so we also need to insert a
Resizer transform to handle transparently frame size changes.

Change-Id: Id7f37a0af65f142fbe6d420ad7b2c1ac2156c21b
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/wmf/player/mfplayersession.cpp
src/plugins/wmf/player/mfplayersession.h