song/DetachedSong: copy the AudioFormat from LightSong
Enables the "Format" row in "playlistinfo" responses. https://github.com/MusicPlayerDaemon/MPD/issues/1094
This commit is contained in:
@@ -47,6 +47,9 @@ merge_song_metadata(DetachedSong &add, const DetachedSong &base) noexcept
|
||||
if (add.GetEndTime().IsZero()) {
|
||||
add.SetEndTime(base.GetEndTime());
|
||||
}
|
||||
|
||||
if (!add.GetAudioFormat().IsDefined())
|
||||
add.SetAudioFormat(base.GetAudioFormat());
|
||||
}
|
||||
|
||||
static bool
|
||||
|
||||
Reference in New Issue
Block a user