Commit 91308f0b authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

vout iOS: prevent termination on close

parent 0d987536
......@@ -247,8 +247,12 @@ void Close (vlc_object_t *this)
[sys->glESView performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:NO];
if (sys->gl.sys != NULL) {
msg_Dbg(this, "deleting display");
vout_display_opengl_Delete(sys->vgl);
@synchronized (sys->glESView) {
msg_Dbg(this, "deleting display");
if (likely([sys->glESView isAppActive]))
vout_display_opengl_Delete(sys->vgl);
}
}
[sys->glESView release];
......
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