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");
@synchronized (sys->glESView) {
msg_Dbg(this, "deleting display");
if (likely([sys->glESView isAppActive]))
[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