Commit 637db5ea authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Taglib: better fix for year and track deletion

Ref #5686
parent d12e755e
......@@ -874,11 +874,13 @@ static int WriteMeta( vlc_object_t *p_this )
#undef SET
psz_meta = input_item_GetDate( p_item );
p_tag->setYear( atoi( psz_meta ) );
if( !EMPTY_STR(psz_meta) ) p_tag->setYear( atoi( psz_meta ) );
else p_tag->setYear( 0 );
free( psz_meta );
psz_meta = input_item_GetTrackNum( p_item );
p_tag->setTrack( atoi( psz_meta ) );
if( !EMPTY_STR(psz_meta) ) p_tag->setTrack( atoi( psz_meta ) );
else p_tag->setTrack( 0 );
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