/*****************************************************************************
* tree.c: libvlc tags tree functions
- * Create a tree of the 'tags' of a media_list's media_descriptors.
+ * Create a tree of the 'tags' of a media_list's medias.
*****************************************************************************
* Copyright (C) 2007 the VideoLAN team
* $Id$
*****************************************************************************/
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
+#include "libvlc.h"
#include "vlc_arrays.h"
/*
libvlc_media_library_load( libvlc_media_library_t * p_mlib,
libvlc_exception_t * p_e )
{
- const char *psz_datadir = p_mlib->p_libvlc_instance->p_libvlc_int->psz_datadir;
+ char *psz_datadir = config_GetUserDataDir();
char * psz_uri;
if( !psz_datadir ) /* XXX: i doubt that this can ever happen */
if( asprintf( &psz_uri, "file/xspf-open://%s" DIR_SEP "ml.xsp",
psz_datadir ) == -1 )
{
+ free( psz_datadir );
libvlc_exception_raise( p_e, "Can't get create the path" );
return;
}
+ free( psz_datadir );
if( p_mlib->p_mlist )
libvlc_media_list_release( p_mlib->p_mlist );
libvlc_media_library_save( libvlc_media_library_t * p_mlib,
libvlc_exception_t * p_e )
{
+ (void)p_mlib;
libvlc_exception_raise( p_e, "Not supported" );
}