Commit a78e7a5c authored by Rémi Duraffort's avatar Rémi Duraffort

taglib: read meta from xiph.

parent dfbb9b5e
...@@ -332,6 +332,13 @@ static int ReadMetaFromId2v2( ID3v2::Tag* tag, vlc_meta_t* p_meta ) ...@@ -332,6 +332,13 @@ static int ReadMetaFromId2v2( ID3v2::Tag* tag, vlc_meta_t* p_meta )
*/ */
static int ReadMetaFromXiph( Ogg::XiphComment* tag, vlc_meta_t* p_meta ) static int ReadMetaFromXiph( Ogg::XiphComment* tag, vlc_meta_t* p_meta )
{ {
#define SET( metaName, keyName ) \
StringList list = tag->fieldListMap()[keyName]; \
if( !list.isEmpty() ) \
vlc_meta_Set##metaName( p_meta, (*list.begin()).toCString( true ) );
SET( Copyright, "COPYRIGHT" );
#undef SET
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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