[vlc-commits] Taglib: allow deletion of track and date

Jean-Baptiste Kempf git at videolan.org
Thu Dec 13 00:12:34 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 12 22:49:03 2012 +0100| [653b010acae452625273231ff46a9c1149ec5d92] | committer: Jean-Baptiste Kempf

Taglib: allow deletion of track and date

Close #5686

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

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

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index cc2d05d..05c5fc2 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -874,11 +874,11 @@ static int WriteMeta( vlc_object_t *p_this )
 #undef SET
 
     psz_meta = input_item_GetDate( p_item );
-    if( !EMPTY_STR(psz_meta) ) p_tag->setYear( atoi( psz_meta ) );
+    p_tag->setYear( atoi( psz_meta ) );
     free( psz_meta );
 
     psz_meta = input_item_GetTrackNum( p_item );
-    if( !EMPTY_STR(psz_meta) ) p_tag->setTrack( atoi( psz_meta ) );
+    p_tag->setTrack( atoi( psz_meta ) );
     free( psz_meta );
 
 



More information about the vlc-commits mailing list