diff --git a/src/playlist/PlaylistQueue.cxx b/src/playlist/PlaylistQueue.cxx index aa8bc7858..77edb7249 100644 --- a/src/playlist/PlaylistQueue.cxx +++ b/src/playlist/PlaylistQueue.cxx @@ -72,11 +72,11 @@ playlist_open_into_queue(const char *uri, Mutex mutex; Cond cond; - std::unique_ptr playlist(playlist_open_any(uri, + auto playlist = playlist_open_any(uri, #ifdef ENABLE_DATABASE - loader.GetStorage(), + loader.GetStorage(), #endif - mutex, cond)); + mutex, cond); if (playlist == nullptr) throw PlaylistError::NoSuchList();