/*****************************************************************************
* vlc.c: the vlc player
*****************************************************************************
- * Copyright (C) 1998-2004 VideoLAN (Centrale Réseaux) and its contributors
+ * Copyright (C) 1998-2004 the VideoLAN team
* $Id$
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "config.h"
static void SigHandler ( int i_signal );
#endif
+extern void rootwrap( void );
+
/*****************************************************************************
* main: parse command line, start interface and spawn threads.
*****************************************************************************/
{
int i_ret;
-#ifndef SYS_DARWIN
+#ifndef __APPLE__
/* This clutters OSX GUI error logs */
fprintf( stderr, "VLC media player %s\n", VLC_Version() );
#endif
}
#endif
+ rootwrap ();
+
/* Create a libvlc structure */
i_ret = VLC_Create();
if( i_ret < 0 )
if( i_ret < 0 )
{
VLC_Destroy( 0 );
- return i_ret;
+ return i_ret == VLC_EEXITSUCCESS ? 0 : i_ret;
}
i_ret = VLC_AddIntf( 0, NULL, VLC_TRUE, VLC_TRUE );