]> git.sesse.net Git - vlc/commitdiff
Taglib: allow deletion of track and date
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 12 Dec 2012 21:49:03 +0000 (22:49 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 12 Dec 2012 23:12:24 +0000 (00:12 +0100)
Close #5686

modules/meta_engine/taglib.cpp

index cc2d05d5f513d6a20b0e5ef877e90dd15fe96d7f..05c5fc27fa637ad9ca362346c34ec6fd023e0d14 100644 (file)
@@ -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 );