modules/gui/ncurse/ncurses.c:

 * fixed a segfault when the 'f' button was pressed with no item playing
parent 485f4372
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ncurses.c : NCurses plugin for vlc * ncurses.c : NCurses plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2004 VideoLAN * Copyright (C) 2001-2004 VideoLAN
* $Id: ncurses.c,v 1.8 2004/01/10 03:36:03 hartman Exp $ * $Id: ncurses.c,v 1.9 2004/01/10 23:31:33 sigmunau Exp $
* *
* Authors: Sam Hocevar <sam@zoy.org> * Authors: Sam Hocevar <sam@zoy.org>
* Laurent Aimar <fenrir@via.ecp.fr> * Laurent Aimar <fenrir@via.ecp.fr>
...@@ -440,12 +440,15 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) ...@@ -440,12 +440,15 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
case 'f': case 'f':
{ {
vout_thread_t *p_vout; vout_thread_t *p_vout;
p_vout = vlc_object_find( p_intf->p_sys->p_input, if( p_intf->p_sys->p_input )
VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout )
{ {
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE; p_vout = vlc_object_find( p_intf->p_sys->p_input,
vlc_object_release( p_vout ); VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout )
{
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
vlc_object_release( p_vout );
}
} }
return 0; return 0;
} }
......
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