[vlc-devel] commit: Win32 Vout: after the previous fix of Win32 Vout, the fullscreen mode wasn't kept for the next item. This fixes that. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Oct 2 08:32:18 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct  1 23:29:09 2008 -0700| [ef0ae57f4824e5d0d00cafb073ff587f8ba89bb2] | committer: Jean-Baptiste Kempf 

Win32 Vout: after the previous fix of Win32 Vout, the fullscreen mode wasn't kept for the next item. This fixes that.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef0ae57f4824e5d0d00cafb073ff587f8ba89bb2
---

 modules/video_output/msw/direct3d.c |    4 +++-
 modules/video_output/msw/directx.c  |    4 +++-
 modules/video_output/msw/glwin32.c  |    4 +++-
 modules/video_output/msw/wingdi.c   |    4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 5591cbb..f78287e 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -269,8 +269,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 )
diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c
index 7f41635..a38a8d1 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directx.c
@@ -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 )
diff --git a/modules/video_output/msw/glwin32.c b/modules/video_output/msw/glwin32.c
index f2c97de..596cb5a 100644
--- a/modules/video_output/msw/glwin32.c
+++ b/modules/video_output/msw/glwin32.c
@@ -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 )
diff --git a/modules/video_output/msw/wingdi.c b/modules/video_output/msw/wingdi.c
index 73f560b..b8b5194 100644
--- a/modules/video_output/msw/wingdi.c
+++ b/modules/video_output/msw/wingdi.c
@@ -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 )




More information about the vlc-devel mailing list