summaryrefslogtreecommitdiffstats
path: root/src/plugins/directshow/player/directshowmetadatacontrol.cpp
diff options
context:
space:
mode:
authorOleg Yadrov <oleg.yadrov@qt.io>2017-02-02 17:24:22 -0800
committerYoann Lopes <yoann.lopes@qt.io>2017-02-06 14:38:22 +0000
commite26e0edd0c3a0e6120008c8a146d8514163930c4 (patch)
tree1794fdf964b32f28132eaa5c3289eadef0f18e82 /src/plugins/directshow/player/directshowmetadatacontrol.cpp
parent823e2fbac5378323b85bdc6136697daad109eae0 (diff)
MediaPlayer: fix crash on pause() call in onPositionChanged handler
Once a second QMediaObjectPrivate iterates through the properties registered with QMediaObject::addPropertyWatch call and invokes their %propertyName%Changed signals. It does it using C++11 range-based for loop. MediaPlayer::pause() and MediaPlayer::stop() calls led to removePropertyWatch(“position”) call, which removed “position” property index from notifyProperties container and invalidated iterator in the loop. Task-number: QTBUG-57045 Change-Id: I855aa004a30dc78b61dbd3423dae0a771e68fda4 Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'src/plugins/directshow/player/directshowmetadatacontrol.cpp')
0 files changed, 0 insertions, 0 deletions