Commit c6a264bf authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed race condition crash when closing the vout

vout_display_opengl_Delete will call OpenglLock, so it is a bad idea to previously release sys->glView
parent 95dac995
...@@ -265,11 +265,11 @@ void Close (vlc_object_t *this) ...@@ -265,11 +265,11 @@ void Close (vlc_object_t *this)
[(id)sys->container performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO]; [(id)sys->container performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO];
[sys->glView performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:NO]; [sys->glView performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:NO];
[sys->glView release];
if (sys->gl.sys != NULL) if (sys->gl.sys != NULL)
vout_display_opengl_Delete (sys->vgl); vout_display_opengl_Delete (sys->vgl);
[sys->glView release];
if (sys->embed) if (sys->embed)
vout_display_DeleteWindow (vd, sys->embed); vout_display_DeleteWindow (vd, sys->embed);
free (sys); free (sys);
......
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