Commit 10973b33 authored by Antoine Cellerier's avatar Antoine Cellerier

Use Artist/Title/Album meta data in vorbis. Feel free to add what's missing...

Use Artist/Title/Album meta data in vorbis. Feel free to add what's missing and remove duplicate stuff from this code
parent d4f1f65d
......@@ -617,14 +617,23 @@ static void ParseVorbisComments( decoder_t *p_dec )
psz_name, psz_value );
if( strcasestr( psz_name, "artist" ) )
{
vlc_meta_SetArtist( p_input->input.p_item->p_meta,
psz_value );
vlc_input_item_AddInfo( p_input->input.p_item,
_(VLC_META_INFO_CAT), _(VLC_META_ARTIST),
"%s", psz_value );
}
else if( strcasestr( psz_name, "title" ) )
{
vlc_meta_SetTitle( p_input->input.p_item->p_meta,
psz_value );
p_input->input.p_item->psz_name = strdup( psz_value );
}
else if( strcasestr( psz_name, "album" ) )
{
vlc_meta_SetAlbum( p_input->input.p_item->p_meta,
psz_value );
}
}
/* FIXME */
var_SetInteger( p_input, "item-change", p_input->input.p_item->i_id );
......
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