Commit 10973b33 authored by dionoea's avatar dionoea
Browse files

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 ) ...@@ -617,14 +617,23 @@ static void ParseVorbisComments( decoder_t *p_dec )
psz_name, psz_value ); psz_name, psz_value );
if( strcasestr( psz_name, "artist" ) ) 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_input_item_AddInfo( p_input->input.p_item,
_(VLC_META_INFO_CAT), _(VLC_META_ARTIST), _(VLC_META_INFO_CAT), _(VLC_META_ARTIST),
"%s", psz_value ); "%s", psz_value );
} }
else if( strcasestr( psz_name, "title" ) ) 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 ); 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 */ /* FIXME */
var_SetInteger( p_input, "item-change", p_input->input.p_item->i_id ); 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