Browse Source

* ./modules/gui/gtk/gtk_callbacks.c: fixed a crash when selecting fullscreen

while there was no input (Closes: #153).
pull/2/head
Sam Hocevar 24 years ago
parent
commit
0e7d6fb945
  1. 7
      modules/gui/gtk/gtk_callbacks.c

7
modules/gui/gtk/gtk_callbacks.c

@ -2,7 +2,7 @@
* gtk_callbacks.c : Callbacks for the Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_callbacks.c,v 1.10 2003/01/26 14:49:09 fenrir Exp $
* $Id: gtk_callbacks.c,v 1.11 2003/01/31 10:54:07 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
@ -148,6 +148,11 @@ gboolean GtkFullscreen( GtkWidget *widget,
intf_thread_t *p_intf = GtkGetIntf( widget );
vout_thread_t *p_vout;
if( p_intf->p_sys->p_input == NULL )
{
return FALSE;
}
p_vout = vlc_object_find( p_intf->p_sys->p_input,
VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout == NULL )

Loading…
Cancel
Save