Android: fixed video rendering with multiple media players.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 20 Jan 2014 16:20:26 +0000 (17:20 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 20 Jan 2014 16:26:21 +0000 (17:26 +0100)
commita0746fe49c186566fc8c619daf0b8bb82929ac55
tree346af347a087cb2ed738ce84be54e7b997c9b707
parent437db8df51c8ce11f6d856d1c0441572cf218e1f
Android: fixed video rendering with multiple media players.

It seems all Android media players share the same video buffers, which
results in textures containing frames for the wrong media player.
When getting a new frame, we now copy it into a FBO in order to avoid
that another media player overwrites the frame being shown on screen.

Task-number: QTBUG-35868
Change-Id: I6701cf7368a3ef9e73d649c3ece1f206cafd5bb3
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/src/common/qandroidvideorendercontrol.cpp
src/plugins/android/src/common/qandroidvideorendercontrol.h
src/plugins/android/videonode/qandroidsgvideonode.cpp
src/plugins/android/videonode/qandroidsgvideonode.h
src/plugins/android/videonode/qandroidsgvideonodeplugin.cpp