Commit 5e4dd4be authored by Max Kellermann's avatar Max Kellermann

Main: allow playlist directory without music directory

parent 04d5896c
...@@ -27,6 +27,7 @@ ver 0.19 (not yet released) ...@@ -27,6 +27,7 @@ ver 0.19 (not yet released)
- increase kernel timer slack on Linux - increase kernel timer slack on Linux
- name each thread (for debugging) - name each thread (for debugging)
* new resampler option using libsoxr * new resampler option using libsoxr
* allow playlist directory without music directory
ver 0.18.8 (2014/02/07) ver 0.18.8 (2014/02/07)
* decoder * decoder
......
...@@ -142,11 +142,8 @@ glue_mapper_init(Error &error) ...@@ -142,11 +142,8 @@ glue_mapper_init(Error &error)
if (playlist_dir.IsNull() && error.IsDefined()) if (playlist_dir.IsNull() && error.IsDefined())
return false; return false;
if (music_dir.IsNull()) {
music_dir = GetUserMusicDir();
if (music_dir.IsNull()) if (music_dir.IsNull())
return true; music_dir = GetUserMusicDir();
}
mapper_init(std::move(music_dir), std::move(playlist_dir)); mapper_init(std::move(music_dir), std::move(playlist_dir));
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment