Commit b69003d6 authored by Stéphane Borel's avatar Stéphane Borel

. Fixed segmentation fault when sdl output exits.

Actually, I don't know why SDLclose was commented out.
parent 653a9c2c
...@@ -130,7 +130,7 @@ void vout_SDLEnd( vout_thread_t *p_vout ) ...@@ -130,7 +130,7 @@ void vout_SDLEnd( vout_thread_t *p_vout )
*****************************************************************************/ *****************************************************************************/
void vout_SDLDestroy( vout_thread_t *p_vout ) void vout_SDLDestroy( vout_thread_t *p_vout )
{ {
// SDLCloseDisplay( p_vout ); SDLCloseDisplay( p_vout );
free( p_vout->p_sys ); free( p_vout->p_sys );
} }
...@@ -163,10 +163,8 @@ void vout_SDLDisplay( vout_thread_t *p_vout ) ...@@ -163,10 +163,8 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
{ {
SDL_Flip( p_vout->p_sys->p_display ); SDL_Flip( p_vout->p_sys->p_display );
}
/* Swap buffers and change write frame */ /* Swap buffers and change write frame */
if( p_vout->p_sys->b_must_acquire )
{
SDL_LockSurface ( p_vout->p_sys->p_display ); SDL_LockSurface ( p_vout->p_sys->p_display );
} }
} }
......
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