From 73b0610d896a7b762a6d7a837fc391967f77bd10 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Feb 2014 11:00:49 +0100 Subject: 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). --- src/playlist/PlaylistSong.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/playlist/PlaylistSong.cxx b/src/playlist/PlaylistSong.cxx index bb82a0254..3e3b40949 100644 --- a/src/playlist/PlaylistSong.cxx +++ b/src/playlist/PlaylistSong.cxx @@ -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; -- cgit v1.2.3