Commit 960c66f6 authored by Thomas Guillem's avatar Thomas Guillem

vout: ios: fix call order

Check nullity before using the glESView object.
parent a238a388
......@@ -162,13 +162,13 @@ static int Open(vlc_object_t *this)
[VLCOpenGLES2VideoView performSelectorOnMainThread:@selector(getNewView:)
withObject:[NSValue valueWithPointer:&sys->glESView]
waitUntilDone:YES];
[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