Commit 153dd4aa authored by Rémi Duraffort's avatar Rémi Duraffort

opengl: fix an crash/hang on exit because opengl needs the init and end to be...

opengl: fix an crash/hang on exit because opengl needs the init and end to be done in the same thread.
parent bf8f6ebc
......@@ -388,6 +388,11 @@ static void End( vout_thread_t *p_vout )
{
p_sys->p_vout->pf_unlock( p_sys->p_vout );
}
/* We must release the opengl provider here: opengl requiere init and end
to be done in the same thread */
module_unneed( p_sys->p_vout, p_sys->p_vout->p_module );
vlc_object_release( p_sys->p_vout );
}
/*****************************************************************************
......@@ -400,9 +405,6 @@ static void DestroyVout( vlc_object_t *p_this )
vout_thread_t *p_vout = (vout_thread_t *)p_this;
vout_sys_t *p_sys = p_vout->p_sys;
module_unneed( p_sys->p_vout, p_sys->p_vout->p_module );
vlc_object_release( p_sys->p_vout );
free( p_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