PlaylistSong: copy the "real" URI

Playback with some decoder plugins was broken because the Queue's
DetachedSong instances did not have the "real" URI (the mapped path).
This commit is contained in:
Max Kellermann 2014-02-10 11:00:49 +01:00
parent 73aec9ce63
commit 73b0610d89

View File

@ -69,6 +69,9 @@ playlist_check_load_song(DetachedSong &song, const SongLoader &loader)
return false;
song.SetURI(tmp->GetURI());
if (!song.HasRealURI() && tmp->HasRealURI())
song.SetRealURI(tmp->GetRealURI());
apply_song_metadata(song, *tmp);
delete tmp;
return true;