]> git.sesse.net Git - vlc/commitdiff
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 6b18935b2a15a2bd6b79b2017c80b0f65c7bb9ea..940c8e36a15d4b191ad871156d0f87844a60bc26 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 );
     }