* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <stdarg.h>
-#include <libvlc_internal.h>
+#include "libvlc_internal.h"
#include <vlc/libvlc.h>
-#include <vlc/intf.h>
+#include <vlc_interface.h>
/*************************************************************************
* Exceptions handling
inline int libvlc_exception_raised( libvlc_exception_t *p_exception )
{
- return p_exception->b_raised;
+ return (NULL != p_exception) && p_exception->b_raised;
}
inline char* libvlc_exception_get_message( libvlc_exception_t *p_exception )
}
inline void libvlc_exception_raise( libvlc_exception_t *p_exception,
- char *psz_format, ... )
+ const char *psz_format, ... )
{
va_list args;
p_new->p_libvlc_int = p_libvlc_int;
p_new->p_vlm = NULL;
+ p_new->b_playlist_locked = 0;
+ vlc_mutex_init(p_libvlc_int, &p_new->instance_lock);
return p_new;
}