From 28484a0ee35d473c56f715e94d58ec272a9fc983 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Teuli=C3=A8re?= Date: Thu, 13 Mar 2003 10:33:29 +0000 Subject: [PATCH 1/1] We don't segfault anymore when trying to go fullscreen with no input (closes #477) --- modules/gui/win32/mainframe.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui/win32/mainframe.cpp b/modules/gui/win32/mainframe.cpp index 467308cfde..2c4a2cad63 100644 --- a/modules/gui/win32/mainframe.cpp +++ b/modules/gui/win32/mainframe.cpp @@ -216,6 +216,11 @@ void __fastcall TMainFrameDlg::FullscreenActionExecute( TObject *Sender ) { vout_thread_t *p_vout; + if( p_intf->p_sys->p_input == NULL ) + { + return; + } + p_vout = (vout_thread_t *)vlc_object_find( p_intf->p_sys->p_input, VLC_OBJECT_VOUT, FIND_CHILD ); if( p_vout == NULL ) -- 2.39.2