[vlc-commits] taglib: cleanup macro definition.
Rémi Duraffort
git at videolan.org
Sat May 14 18:37:53 CEST 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat May 14 13:21:03 2011 +0200| [277eb4cfbc9c7b37752b781029899177caade0dd] | committer: Rémi Duraffort
taglib: cleanup macro definition.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=277eb4cfbc9c7b37752b781029899177caade0dd
---
modules/meta_engine/taglib.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index f1419ec..13f23c7 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -289,8 +289,9 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_meta_t* p_demux_meta, vlc_
*/
static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_meta_t* p_demux_meta, vlc_meta_t* p_meta )
{
+ StringList list;
#define SET( keyName, metaName ) \
- StringList list = tag->fieldListMap()[keyName]; \
+ list = tag->fieldListMap()[keyName]; \
if( !list.isEmpty() ) \
vlc_meta_Set##metaName( p_meta, (*list.begin()).toCString( true ) );
More information about the vlc-commits
mailing list