* 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
*
* 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 <libvlc_internal.h>
#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->psz_message = NULL;
+ 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 )
{