playlist/PlaylistSong: also copy start and end time in merge_song_metadata
This is needed to correctly load playlist entries that reference a song in a cuesheet that is treated as a folder.
This commit is contained in:
parent
803a48e96d
commit
7dea5db5df
@ -40,6 +40,13 @@ merge_song_metadata(DetachedSong &add, const DetachedSong &base) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
add.SetLastModified(base.GetLastModified());
|
add.SetLastModified(base.GetLastModified());
|
||||||
|
|
||||||
|
if (add.GetStartTime().IsZero()) {
|
||||||
|
add.SetStartTime(base.GetStartTime());
|
||||||
|
}
|
||||||
|
if (add.GetEndTime().IsZero()) {
|
||||||
|
add.SetEndTime(base.GetEndTime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user