Commit 6d58f12a authored by Sam Hocevar's avatar Sam Hocevar

* ./plugins/gtk/gtk_callbacks.c: fixed a segfault when hitting Eject with

    an emtpy playlist.
parent 124fa2e9
......@@ -2,7 +2,7 @@
* gtk_callbacks.c : Callbacks for the Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_callbacks.c,v 1.46 2002/06/07 23:05:03 sam Exp $
* $Id: gtk_callbacks.c,v 1.47 2002/07/01 17:39:08 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -396,6 +396,14 @@ gboolean GtkDiscEject ( GtkWidget *widget, gpointer user_data )
}
vlc_mutex_lock( &p_playlist->object_lock );
if( p_playlist->i_index < 0 )
{
vlc_mutex_unlock( &p_playlist->object_lock );
vlc_object_release( p_playlist );
return FALSE;
}
psz_current = p_playlist->pp_items[ p_playlist->i_index ]->psz_name;
/*
......
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