Win32 Vout: after the previous fix of Win32 Vout, the fullscreen mode wasn't kept...
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 2 Oct 2008 06:29:09 +0000 (23:29 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 2 Oct 2008 08:40:00 +0000 (01:40 -0700)
modules/video_output/msw/direct3d.c
modules/video_output/msw/directx.c
modules/video_output/msw/glwin32.c
modules/video_output/msw/wingdi.c

index ea02a4d..8e1c07f 100644 (file)
@@ -270,8 +270,10 @@ static void CloseVideo( vlc_object_t *p_this )
 
     if( p_vout->b_fullscreen )
     {
-        Win32ToggleFullscreen( p_vout );
         msg_Dbg( p_vout, "Quitting fullscreen" );
+        Win32ToggleFullscreen( p_vout );
+        /* Force fullscreen in the core for the next video */
+        var_SetBool( p_vout, "fullscreen", true );
     }
 
     if( p_vout->p_sys->p_event )
index 043c4a8..4720f98 100644 (file)
@@ -490,8 +490,10 @@ static void CloseVideo( vlc_object_t *p_this )
 
     if( p_vout->b_fullscreen )
     {
-        Win32ToggleFullscreen( p_vout );
         msg_Dbg( p_vout, "Quitting fullscreen" );
+        Win32ToggleFullscreen( p_vout );
+        /* Force fullscreen in the core for the next video */
+        var_SetBool( p_vout, "fullscreen", true );
     }
 
     if( p_vout->p_sys->p_event )
index bf49e2b..c0fd6c0 100644 (file)
@@ -222,8 +222,10 @@ static void CloseVideo( vlc_object_t *p_this )
 
     if( p_vout->b_fullscreen )
     {
-        Win32ToggleFullscreen( p_vout );
         msg_Dbg( p_vout, "Quitting fullscreen" );
+        Win32ToggleFullscreen( p_vout );
+        /* Force fullscreen in the core for the next video */
+        var_SetBool( p_vout, "fullscreen", true );
     }
 
     if( p_vout->p_sys->p_event )
index 874ed30..251e55f 100644 (file)
@@ -315,8 +315,10 @@ static void CloseVideo ( vlc_object_t *p_this )
 
     if( p_vout->b_fullscreen )
     {
-        Win32ToggleFullscreen( p_vout );
         msg_Dbg( p_vout, "Quitting fullscreen" );
+        Win32ToggleFullscreen( p_vout );
+        /* Force fullscreen in the core for the next video */
+        var_SetBool( p_vout, "fullscreen", true );
     }
 
     if( p_vout->p_sys->p_event )