Commit ee27e61c authored by Thomas Guillem's avatar Thomas Guillem

vout: ios: fix call order

Check nullity before using the glESView object.

(cherry picked from commit 960c66f6)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent 8ab78698
......@@ -162,13 +162,13 @@ static int Open(vlc_object_t *this)
[VLCOpenGLES2VideoView performSelectorOnMainThread:@selector(getNewView:)
withObject:[NSValue valueWithPointer:&sys->glESView]
[sys->glESView setVoutDisplay:vd];
if (!sys->glESView) {
msg_Err(vd, "Creating OpenGL ES 2 view failed");
goto bailout;
[sys->glESView setVoutDisplay:vd];
[sys->glESView performSelectorOnMainThread:@selector(fetchViewContainer) withObject:nil waitUntilDone:YES];
if (!sys->viewContainer) {
msg_Err(vd, "Fetching view container failed");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment