WMF: Fix null ptr derefernce in MFPlayerSession.
authorDavid Schulz <david.schulz@digia.com>
Thu, 25 Sep 2014 05:15:25 +0000 (07:15 +0200)
committerYoann Lopes <yoann.lopes@digia.com>
Tue, 30 Sep 2014 07:20:56 +0000 (09:20 +0200)
commitb3d88c66be2ba6a6975cd3dd152a40fe429ecb6c
tree8b868ee5725a641f6b7fcf401cd754fbee117e01
parentb6e1c004142d64a1cb2f83f9928cd2bbadaf0914
WMF: Fix null ptr derefernce in MFPlayerSession.

Checking the sender of the mediaSourceReady signal to prevent accessing
the incorrect source resolver.

When the source resolver has finished the asynchronous operation and
the source resolver gets recreated in the player at the same time in a
different thread the signal mediaSourceReady still gets emitted from the
old source resolver.

The player assumes that the signal was emitted from the current source
resolver and accesses the unresolved media source in the
handleMediaSourceReady slot.

Task-number: QTBUG-39980
Change-Id: Ic52f6918995aac250048d91f89c520cfea111bd0
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/wmf/player/mfplayersession.cpp