]> git.sesse.net Git - vlc/commitdiff
We don't segfault anymore when trying to go fullscreen with no input
authorOlivier Teulière <ipkiss@videolan.org>
Thu, 13 Mar 2003 10:33:29 +0000 (10:33 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Thu, 13 Mar 2003 10:33:29 +0000 (10:33 +0000)
(closes #477)

modules/gui/win32/mainframe.cpp

index 467308cfdefefaba97dbb8c9c3b1d59f6c116ccd..2c4a2cad6341e424b25e992b7445b3d15ce516b5 100644 (file)
@@ -216,6 +216,11 @@ void __fastcall TMainFrameDlg::FullscreenActionExecute( TObject *Sender )
 {\r
     vout_thread_t *p_vout;\r
 \r
+    if( p_intf->p_sys->p_input == NULL )\r
+    {\r
+        return;\r
+    }\r
+\r
     p_vout = (vout_thread_t *)vlc_object_find( p_intf->p_sys->p_input,\r
                                                VLC_OBJECT_VOUT, FIND_CHILD );\r
     if( p_vout == NULL )\r