* ./modules/gui/gtk/gtk_callbacks.c: fixed a crash when selecting fullscreen
authorSam Hocevar <sam@videolan.org>
Fri, 31 Jan 2003 10:54:07 +0000 (10:54 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 31 Jan 2003 10:54:07 +0000 (10:54 +0000)
    while there was no input (Closes: #153).

modules/gui/gtk/gtk_callbacks.c

index f974a44..f016fc1 100644 (file)
@@ -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 )