AVFoundation: Fix broken requestControl logic
authorAndy Nichols <andy.nichols@digia.com>
Tue, 20 Nov 2012 11:48:09 +0000 (12:48 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 20 Nov 2012 18:29:27 +0000 (19:29 +0100)
commit748684b3572eaed3f3818eb112fb2cb071dde475
treef75f8dbf43dc0f9dbc4816737fb37d4d928af9ab
parent78ce69d3dd26ed54f2aa3d86a8d5575d29711fd5
AVFoundation: Fix broken requestControl logic

AVFMediaPlayerService::requestControl was returning the video output
control after the video output was created, and this could result in
unexpected behavior, as well as prematurely calling releaseControl on
the video output.  This should fix the "player" example on OS X.

Change-Id: Ie23b1176272a1f9daa5edeec856141ac52a450c7
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/avfoundation/mediaplayer/avfmediaplayerservice.mm