[vlc-devel] commit: taglib: read meta from xiph. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Dec 30 19:20:10 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Dec 30 18:59:47 2008 +0100| [a78e7a5cf40455f88e664d4f42427196fa27d427] | committer: Rémi Duraffort
taglib: read meta from xiph.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a78e7a5cf40455f88e664d4f42427196fa27d427
---
modules/meta_engine/taglib.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index cc90621..c5f8963 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -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 )
{
+#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;
}
More information about the vlc-devel
mailing list