aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/PlaylistSong.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-10 11:00:49 +0100
committerMax Kellermann <max@duempel.org>2014-02-10 11:00:49 +0100
commit73b0610d896a7b762a6d7a837fc391967f77bd10 (patch)
tree9bcf397a5aa253233103b43d10a4a489fd96d7f7 /src/playlist/PlaylistSong.cxx
parent73aec9ce6317abf6982d32bc6b8a39f50d229900 (diff)
downloadmpd-73b0610d896a7b762a6d7a837fc391967f77bd10.tar.gz
mpd-73b0610d896a7b762a6d7a837fc391967f77bd10.tar.xz
mpd-73b0610d896a7b762a6d7a837fc391967f77bd10.zip
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).
Diffstat (limited to 'src/playlist/PlaylistSong.cxx')
-rw-r--r--src/playlist/PlaylistSong.cxx3
1 files changed, 3 insertions, 0 deletions
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;