]> git.sesse.net Git - vlc/commitdiff
Use Artist/Title/Album meta data in vorbis. Feel free to add what's missing and remov...
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 17 Sep 2006 21:16:01 +0000 (21:16 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 17 Sep 2006 21:16:01 +0000 (21:16 +0000)
modules/codec/vorbis.c

index 6ca5dd11fcb23626c7f4c212bc4f9967200186c0..2f3b61c4b959eba0c5dccfe83579946e5b949161 100644 (file)
@@ -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 );