Commit 0ed10542 authored by Fredrik Noring's avatar Fredrik Noring Committed by Max Kellermann

decoder/sidplay: Fix song length initialisation during container scan

The song length was previously undetermined.
parent ab830f9a
ver 0.21.14 (not yet released)
* decoder
- sidplay: show track durations in database
ver 0.21.13 (2019/08/06)
* input
......
......@@ -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 */
......
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