Commit 50e585e4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Taglib: do not write 0 as track position if tracknumber is ""

(cherry picked from commit ea81feee5bf176e15347baf9761ba9525e5a3040)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 16783d8d
......@@ -630,11 +630,11 @@ static int WriteMeta( vlc_object_t *p_this )
#undef SET
psz_meta = input_item_GetDate( p_item );
if( psz_meta ) p_tag->setYear( atoi( psz_meta ) );
if( !EMPTY_STR(psz_meta) ) p_tag->setYear( atoi( psz_meta ) );
free( psz_meta );
psz_meta = input_item_GetTrackNum( p_item );
if( psz_meta ) p_tag->setTrack( atoi( psz_meta ) );
if( !EMPTY_STR(psz_meta) ) p_tag->setTrack( atoi( psz_meta ) );
free( psz_meta );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment