* Copyright (C) 2005 the VideoLAN team
* $Id$
*
- * Authors: Clément Stenac <zorglub@videolan.org>
+ * Authors: Cl�ent Stenac <zorglub@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <vlc/intf.h>
-vlc_t * vlc_current_object( int );
-
/*************************************************************************
* Exceptions handling
*************************************************************************/
p_exception->psz_message = NULL;
}
+void libvlc_exception_clear( libvlc_exception_t *p_exception )
+{
+ if( p_exception->psz_message )
+ free( p_exception->psz_message );
+ p_exception->b_raised = 0;
+}
+
inline int libvlc_exception_raised( libvlc_exception_t *p_exception )
{
return p_exception->b_raised;
{
if( p_exception == NULL ) return;
p_exception->b_raised = 1;
- p_exception->psz_message = strdup( psz_message );
+ if( psz_message )
+ p_exception->psz_message = strdup( psz_message );
}
-
libvlc_instance_t * libvlc_new( int argc, char **argv,
libvlc_exception_t *p_exception )
{