Commit adee2d26 authored by Rafaël Carré's avatar Rafaël Carré

Do not crash in vout destruction when exiting

parent 9d2636c5
...@@ -508,9 +508,11 @@ static void vout_Destructor( vlc_object_t * p_this ) ...@@ -508,9 +508,11 @@ static void vout_Destructor( vlc_object_t * p_this )
#ifndef __APPLE__ #ifndef __APPLE__
vout_thread_t *p_another_vout; vout_thread_t *p_another_vout;
playlist_t *p_playlist = pl_Yield( p_vout );
/* This is a dirty hack for mostly Linux, where there is no way to get the GUI playlist_t *p_playlist = pl_Get( p_vout );
if( p_playlist->b_die ) return;
vlc_object_yield( p_playlist );
/* This is a dirty hack for mostly Linux, where there is no way to get the GUI
back if you closed it while playing video. This is solved in Mac OS X, back if you closed it while playing video. This is solved in Mac OS X,
where we have this novelty called menubar, that will always allow you access where we have this novelty called menubar, that will always allow you access
to the applications main functionality. They should try that on linux sometime */ to the applications main functionality. They should try that on linux sometime */
......
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