]> git.sesse.net Git - vlc/commitdiff
Fixed uninitialized variables (msw).
authorLaurent Aimar <fenrir@videolan.org>
Sun, 11 Oct 2009 09:49:48 +0000 (11:49 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 11 Oct 2009 17:33:44 +0000 (19:33 +0200)
modules/video_output/msw/events.c

index 3aab8ca539b45d9d8be8a46821b77498bbcd330f..c64cfda061898b52c11a56f09b45dd45d9c067d7 100644 (file)
@@ -457,6 +457,8 @@ static int DirectXCreateWindow( event_thread_t *p_event )
         p_event->parent_window = vout_window_New( VLC_OBJECT(p_vout), NULL, &p_event->wnd_cfg );
         if( p_event->parent_window )
             p_event->hparent = p_event->parent_window->handle.hwnd;
+        else
+            p_event->hparent = NULL;
     #ifdef MODULE_NAME_IS_direct3d
     }
     else
@@ -601,6 +603,10 @@ static int DirectXCreateWindow( event_thread_t *p_event )
                             CW_USEDEFAULT, CW_USEDEFAULT,
                             NULL, NULL, hInstance, NULL );
     }
+    else
+    {
+        p_event->hfswnd = NULL;
+    }
 
     /* Append a "Always On Top" entry in the system menu */
     hMenu = GetSystemMenu( p_event->hwnd, FALSE );
@@ -1049,7 +1055,10 @@ int EventThreadStart( event_thread_t *p_event, event_hwnd_t *p_hwnd, const event
     }
     msg_Dbg( p_event->p_vout, "Vout EventThread running" );
 
-    p_hwnd->parent_window = p_event->parent_window;
+    if( !p_event->use_desktop )
+        p_hwnd->parent_window = p_event->parent_window;
+    else
+        p_hwnd->parent_window = NULL;
     p_hwnd->hparent       = p_event->hparent;
     p_hwnd->hwnd          = p_event->hwnd;
     p_hwnd->hvideownd     = p_event->hvideownd;