]> git.sesse.net Git - vlc/commitdiff
. Fixed segmentation fault when sdl output exits.
authorStéphane Borel <stef@videolan.org>
Wed, 25 Oct 2000 23:14:01 +0000 (23:14 +0000)
committerStéphane Borel <stef@videolan.org>
Wed, 25 Oct 2000 23:14:01 +0000 (23:14 +0000)
Actually, I don't know why SDLclose was commented out.

plugins/sdl/vout_sdl.c

index 95b364478c56f723815668e3fb956d01d9806b33..b0725553834c33046dc85a86f28e58b2254b695f 100644 (file)
@@ -130,7 +130,7 @@ void vout_SDLEnd( vout_thread_t *p_vout )
  *****************************************************************************/
 void vout_SDLDestroy( vout_thread_t *p_vout )
 {
-    // SDLCloseDisplay( p_vout );
+    SDLCloseDisplay( p_vout );
     free( p_vout->p_sys );
 }
 
@@ -163,10 +163,8 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
         {
             
             SDL_Flip( p_vout->p_sys->p_display );
-        }
-        /* Swap buffers and change write frame */
-        if( p_vout->p_sys->b_must_acquire )
-        {
+            
+            /* Swap buffers and change write frame */
             SDL_LockSurface ( p_vout->p_sys->p_display );
         }
     }