decoder/sidplay: Fix song length initialisation during container scan
The song length was previously undetermined.
This commit is contained in:

committed by
Max Kellermann

parent
ab830f9afd
commit
0ed10542cc
@@ -547,6 +547,10 @@ sidplay_container_scan(Path path_fs)
|
||||
AddTagHandler h(tag_builder);
|
||||
ScanSidTuneInfo(info, i, n_tracks, h);
|
||||
|
||||
const SignedSongTime duration = get_song_length(tune);
|
||||
if (!duration.IsNegative())
|
||||
h.OnDuration(SongTime(duration));
|
||||
|
||||
char track_name[32];
|
||||
/* Construct container/tune path names, eg.
|
||||
Delta.sid/tune_001.sid */
|
||||
|
Reference in New Issue
Block a user