AVFoundation: Call stop() on VideoSurface when changing sources
authorAndy Nichols <andy.nichols@digia.com>
Mon, 3 Mar 2014 17:39:43 +0000 (18:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Mar 2014 14:34:09 +0000 (15:34 +0100)
commit70415c3d9752e357e8d49633cdd8e82d3519e59b
tree2b562cb5a2939bff14dbe99c1e929efaf5c34e2c
parent1fe5a7964fa1362349b10753c5cc89f1cc7fd978
AVFoundation: Call stop() on VideoSurface when changing sources

Before we were reusing the active surface when we switched videos.  This
leads to an inconsitency in states, and the sourceRect property of the
video surface does not get updated.

Task-number: QTBUG-28655
Change-Id: Ie29bf1d9b1c11b6f51a869253c730202001c07cf
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.mm