Android: fix two race conditions in the media player.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 4 Nov 2013 18:14:22 +0000 (19:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 6 Nov 2013 13:24:35 +0000 (14:24 +0100)
commit2412c298d4e8c112a63eb1e3ec9b5f2789bd3eeb
treecfad146d4d14925554d2517ee76cd2e834e6504c
parentfb199a5045f6637a9ecbbf53bd32170a185b3854
Android: fix two race conditions in the media player.

start() could be called before the media player was marked as prepared.
When changing media, setMediaPath() could be called before the media
player was reset.

Task-number: QTBUG-34558
Change-Id: I886fd5f5008f76dcbc88c57d7b16a439b394d4a7
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/jar/src/org/qtproject/qt5/android/multimedia/QtAndroidMediaPlayer.java
src/plugins/android/src/mediaplayer/qandroidmediaplayercontrol.cpp