Commit 50d5d521 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: avoid a crash if VLCIntf is NULL.

Note: This is completly crippled and can easily lead to some race condition. We need to re-think the whole modules to avoid those.
parent 24ddff58
...@@ -204,7 +204,7 @@ void E_(CloseVideoGL) ( vlc_object_t * p_this ) ...@@ -204,7 +204,7 @@ void E_(CloseVideoGL) ( vlc_object_t * p_this )
{ {
aglDestroyContext(p_vout->p_sys->agl_ctx); aglDestroyContext(p_vout->p_sys->agl_ctx);
} }
else if(!VLCIntf->b_die) else if(VLCIntf && !VLCIntf->b_die)
{ {
NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
......
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