Commit ea81feee authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

parent dce1d72b
......@@ -655,11 +655,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