Commit 28484a0e authored by Olivier Teulière's avatar Olivier Teulière

We don't segfault anymore when trying to go fullscreen with no input

(closes #477)
parent 7980185d
...@@ -216,6 +216,11 @@ void __fastcall TMainFrameDlg::FullscreenActionExecute( TObject *Sender ) ...@@ -216,6 +216,11 @@ void __fastcall TMainFrameDlg::FullscreenActionExecute( TObject *Sender )
{ {
vout_thread_t *p_vout; 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, p_vout = (vout_thread_t *)vlc_object_find( p_intf->p_sys->p_input,
VLC_OBJECT_VOUT, FIND_CHILD ); VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout == NULL ) if( p_vout == NULL )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment