Commit 6c717962 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

taglib: use input item URI

parent 1c0fcde5
...@@ -669,18 +669,20 @@ static int ReadMeta( vlc_object_t* p_this) ...@@ -669,18 +669,20 @@ static int ReadMeta( vlc_object_t* p_this)
{ {
vlc_mutex_locker locker (&taglib_lock); vlc_mutex_locker locker (&taglib_lock);
demux_meta_t* p_demux_meta = (demux_meta_t *)p_this; demux_meta_t* p_demux_meta = (demux_meta_t *)p_this;
demux_t* p_demux = p_demux_meta->p_demux;
vlc_meta_t* p_meta; vlc_meta_t* p_meta;
FileRef f; FileRef f;
p_demux_meta->p_meta = NULL; p_demux_meta->p_meta = NULL;
if( strcmp( p_demux->psz_access, "file" ) )
return VLC_EGENERIC;
char *psz_path = strdup( p_demux->psz_file ); char *psz_uri = input_item_GetURI( p_demux_meta->p_item );
if( !psz_path ) if( unlikely(psz_uri == NULL) )
return VLC_ENOMEM; return VLC_ENOMEM;
char *psz_path = make_path( psz_uri );
free( psz_uri );
if( psz_path == NULL )
return VLC_EGENERIC;
#if defined(_WIN32) #if defined(_WIN32)
wchar_t *wpath = ToWide( psz_path ); wchar_t *wpath = ToWide( psz_path );
if( wpath == NULL ) if( wpath == NULL )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment