* and spawns threads.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: libvlc.c,v 1.12 2002/07/03 19:40:49 sam Exp $
+ * $Id: libvlc.c,v 1.13 2002/07/11 18:44:12 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* armed and following signals will be ignored to avoid sending messages
* to an interface having been destroyed */
- vlc_mutex_lock( &global_lock );
if( !b_die )
{
b_die = VLC_TRUE;
abort_time = mdate();
+ fprintf( stderr, "signal %d received, terminating libvlc - do it "
+ "again in case your process gets stuck\n", i_signal );
+
/* Try to terminate everything - this is done by requesting the end of
* all the p_vlc structures */
for( i_index = 0 ; i_index < i_vlc ; i_index++ )
{
/* Acknowledge the signal received */
- msg_Err( pp_vlc[ i_index ], "signal %d received, exiting - do it "
- "again in case vlc gets stuck", i_signal );
pp_vlc[ i_index ]->b_die = VLC_TRUE;
}
}
signal( SIGHUP, SIG_IGN );
signal( SIGQUIT, SIG_IGN );
- for( i_index = 0 ; i_index < i_vlc ; i_index++ )
- {
- msg_Err( pp_vlc[ i_index ], "user insisted too much, dying badly" );
- }
+ fprintf( stderr, "user insisted too much, dying badly\n" );
- vlc_mutex_unlock( &global_lock );
exit( 1 );
}
-
- vlc_mutex_unlock( &global_lock );
}
#endif
* vlc.c: the vlc player
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: vlc.c,v 1.3 2002/07/03 19:40:49 sam Exp $
+ * $Id: vlc.c,v 1.4 2002/07/11 18:44:12 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
/* Add background interfaces */
//{ int i; for( i=10; i--; ) vlc_add_intf( p_vlc, "dummy", 0 ); }
- vlc_add_intf( p_vlc, "dummy", VLC_FALSE );
- vlc_add_intf( p_vlc, "logger", VLC_FALSE );
+ //vlc_add_intf( p_vlc, "dummy", VLC_FALSE );
+ //vlc_add_intf( p_vlc, "logger", VLC_FALSE );
//vlc_add_intf( p_vlc, "xosd", VLC_FALSE );
+ //vlc_add_intf( p_vlc, "gtk", VLC_FALSE );
//vlc_add_intf( p_vlc, "kde", VLC_FALSE );
vlc_add_intf( p_vlc, "rc", VLC_FALSE );