PlaylistSong: recurse after applying base_uri

Allows applying map_to_relative_path() with base_uri.
This commit is contained in:
Max Kellermann 2014-01-20 22:17:59 +01:00
parent 501f1e6de0
commit 82b4ec22be
1 changed files with 3 additions and 3 deletions

View File

@ -136,10 +136,10 @@ playlist_check_translate_song(DetachedSong *song, const char *base_uri,
base_uri = nullptr;
}
std::string full_uri;
if (base_uri != nullptr) {
full_uri = PathTraitsUTF8::Build(base_uri, uri);
uri = full_uri.c_str();
song->SetURI(PathTraitsUTF8::Build(base_uri, uri));
/* repeat the above checks */
return playlist_check_translate_song(song, nullptr, secure);
}
DetachedSong *dest = playlist_check_load_song(song, uri, secure);