macosx/vout.m: don't forget to EndFullScreen() on GL mode too
authorEric Petit <titer@videolan.org>
Fri, 14 May 2004 11:29:21 +0000 (11:29 +0000)
committerEric Petit <titer@videolan.org>
Fri, 14 May 2004 11:29:21 +0000 (11:29 +0000)
modules/gui/macosx/vout.m

index 6b18935..940c8e3 100644 (file)
@@ -460,13 +460,14 @@ void E_(CloseVideo) ( vlc_object_t *p_this )
         msg_Err( p_vout, "unable to destroy window" );
     }
 
-    if( !p_vout->p_sys->i_opengl )
+    if ( p_vout->p_sys->p_fullscreen_state != NULL )
     {
-        if ( p_vout->p_sys->p_fullscreen_state != NULL )
-            EndFullScreen ( p_vout->p_sys->p_fullscreen_state, NULL );
+        EndFullScreen ( p_vout->p_sys->p_fullscreen_state, NULL );
+    }
 
+    if( !p_vout->p_sys->i_opengl )
+    {
         ExitMovies();
-
         free( p_vout->p_sys->p_matrix );
         DisposeHandle( (Handle)p_vout->p_sys->h_img_descr );
     }