WMF: Improved error reporting.
authorYoann Lopes <yoann.lopes@digia.com>
Tue, 11 Dec 2012 15:36:53 +0000 (16:36 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Dec 2012 16:13:02 +0000 (17:13 +0100)
commit3f84142aaa0c63edf6fdc1e144ab29be51a29af9
treefb1b8e0aebebc88dc4c38c29747bb11f5bd08269
parent4b62c926b7d9c8a7ae1434b1bdac145882512487
WMF: Improved error reporting.

When loading the source fails because the file format is not supported, we
now report a FormatError instead of a ResourceError.
When the file format is supported but the media cannot be played (topology
cannot be resolved), it is most likely caused by a missing codec and we
then report a FormatError.

Change-Id: I101a86c129a0c5dccb543fc1247cb741994684fd
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/plugins/wmf/player/mfplayersession.cpp