Commit 78f2a6f1 authored by Laurent Aimar's avatar Laurent Aimar

Removed variable callback when needed in the projectm module.

It fixes #5720.
parent af0ac19f
...@@ -349,6 +349,7 @@ static void *Thread( void *p_data ) ...@@ -349,6 +349,7 @@ static void *Thread( void *p_data )
gl = vout_GetDisplayOpengl( p_sys->p_vd ); gl = vout_GetDisplayOpengl( p_sys->p_vd );
if( !gl ) if( !gl )
{ {
var_DelCallback( p_sys->p_vout, "fullscreen", VoutCallback, p_sys->p_vd );
vout_DeleteDisplay( p_sys->p_vd, NULL ); vout_DeleteDisplay( p_sys->p_vd, NULL );
vlc_object_release( p_sys->p_vout ); vlc_object_release( p_sys->p_vout );
goto error; goto error;
...@@ -441,6 +442,7 @@ static void *Thread( void *p_data ) ...@@ -441,6 +442,7 @@ static void *Thread( void *p_data )
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
delete p_projectm; delete p_projectm;
var_DelCallback( p_sys->p_vout, "fullscreen", VoutCallback, p_sys->p_vd );
vout_DeleteDisplay( p_sys->p_vd, NULL ); vout_DeleteDisplay( p_sys->p_vd, NULL );
vlc_object_release( p_sys->p_vout ); vlc_object_release( p_sys->p_vout );
if (loc != (locale_t)0) if (loc != (locale_t)0)
......
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