* If $DISPLAY isn't set, don't try to run the Gtk+ interface.
* Fixed a segfault in input_dvd.c:DVDInit.
* -dvd_udf to find files
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: input_dvd.c,v 1.105 2001/12/07 18:33:07 sam Exp $
+ * $Id: input_dvd.c,v 1.105.2.1 2001/12/29 23:35:10 sam Exp $
*
* Author: Stéphane Borel <stef@via.ecp.fr>
*
if( IfoCreate( p_dvd ) < 0 )
{
intf_ErrMsg( "dvd error: allcation error in ifo" );
- dvdcss_close( p_dvd->dvdhandle );
free( p_dvd );
p_input->b_error = 1;
return;
{
intf_ErrMsg( "dvd error: fatal failure in ifo" );
IfoDestroy( p_dvd->p_ifo );
- dvdcss_close( p_dvd->dvdhandle );
free( p_dvd );
p_input->b_error = 1;
return;
* gtk_playlist.c : Interface for the playlist dialog
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: gtk_playlist.c,v 1.22 2001/12/07 18:33:07 sam Exp $
+ * $Id: gtk_playlist.c,v 1.22.2.1 2001/12/29 23:35:10 sam Exp $
*
* Authors: Pierre Baillet <oct@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
for( i_dummy = 0; i_dummy < p_playlist->i_size ; i_dummy++ )
{
#ifdef WIN32 /* WIN32 HACK */
- ppsz_text[0] = g_strdup( "" );
+ ppsz_text[0] = "";
#else
- ppsz_text[0] = g_strdup( rindex( (char *)(p_playlist->p_item[
- p_playlist->i_size - 1 - i_dummy].psz_name ), '/' ) + 1 );
+ ppsz_text[0] = rindex( p_playlist->p_item[
+ p_playlist->i_size - 1 - i_dummy].psz_name, '/' );
+ if ( ppsz_text[0] == NULL )
+ {
+ ppsz_text[0] =
+ p_playlist->p_item[ p_playlist->i_size - 1 - i_dummy ].psz_name;
+ }
+ else
+ {
+ /* Skip leading '/' */
+ ppsz_text[0]++;
+ }
#endif
- ppsz_text[1] = g_strdup( "no info");
+ ppsz_text[1] = "no info";
gtk_clist_insert( p_clist, 0, ppsz_text );
-
- free( ppsz_text[0] );
- free( ppsz_text[1] );
}
gtk_clist_set_background( p_clist, p_playlist->i_index, &red);
gtk_clist_thaw( p_clist );
* intf_gnome.c: Gnome interface
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: intf_gnome.c,v 1.7 2001/12/07 18:33:07 sam Exp $
+ * $Id: intf_gnome.c,v 1.7.2.1 2001/12/29 23:35:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
return( 200 );
}
+#ifndef WIN32
+ if( getenv( "DISPLAY" ) == NULL )
+ {
+ return( 15 );
+ }
+#endif
+
return( 100 );
}
* intf_gtk.c: Gtk+ interface
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: intf_gtk.c,v 1.29 2001/12/07 18:33:07 sam Exp $
+ * $Id: intf_gtk.c,v 1.29.2.1 2001/12/29 23:35:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
return( 190 );
}
+#ifndef WIN32
+ if( getenv( "DISPLAY" ) == NULL )
+ {
+ return( 10 );
+ }
+#endif
+
return( 90 );
}
* vpar_headers.c : headers parsing
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: vpar_headers.c,v 1.2.2.2 2001/12/13 23:56:18 sam Exp $
+ * $Id: vpar_headers.c,v 1.2.2.3 2001/12/29 23:35:10 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stéphane Borel <stef@via.ecp.fr>
intf_ErrMsg( "vpar error: can't open vout, aborting" );
vlc_mutex_unlock( &p_vout_bank->lock );
- /* XXX ! XXX ! XXX ! what to do here ? */
+ p_vpar->p_fifo->b_error = 1;
return;
}
return( 999 );
}
- return( 2 );
+ return( 20 );
}
/*****************************************************************************