[vlc-commits] Taglib: don't try to add empty meta in APE

Jean-Baptiste Kempf git at videolan.org
Wed Oct 26 05:50:18 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 24 03:07:54 2011 +0200| [00114ae28d377d4044e392948e7fd81c4d0bb89e] | committer: Jean-Baptiste Kempf

Taglib: don't try to add empty meta in APE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00114ae28d377d4044e392948e7fd81c4d0bb89e
---

 modules/meta_engine/taglib.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index d5e9e1c..ab11cce 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -119,7 +119,7 @@ static void ReadMetaFromAPE( APE::Tag* tag, demux_meta_t*, vlc_meta_t* p_meta )
     APE::Item item;
 #define SET( keyName, metaName ) \
     item = tag->itemListMap()[keyName]; \
-    vlc_meta_Set##metaName( p_meta, item.toString().toCString( true ) );\
+    if( !item.isEmpty() ) vlc_meta_Set##metaName( p_meta, item.toString().toCString( true ) ); \
 
     SET( "COPYRIGHT", Copyright );
     SET( "LANGUAGE", Language );



More information about the vlc-commits mailing list