diff options
author | Oleg Yadrov <oleg.yadrov@qt.io> | 2017-02-02 17:24:22 -0800 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2017-02-06 14:38:22 +0000 |
commit | e26e0edd0c3a0e6120008c8a146d8514163930c4 (patch) | |
tree | 1794fdf964b32f28132eaa5c3289eadef0f18e82 /src/multimedia/doc/src/qtmultimedia-index.qdoc | |
parent | 823e2fbac5378323b85bdc6136697daad109eae0 (diff) | |
download | qtmultimedia-e26e0edd0c3a0e6120008c8a146d8514163930c4.tar.gz |
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/multimedia/doc/src/qtmultimedia-index.qdoc')
0 files changed, 0 insertions, 0 deletions