diff options
Diffstat (limited to '')
-rw-r--r-- | src/input/DespotifyInputPlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input/DespotifyInputPlugin.cxx b/src/input/DespotifyInputPlugin.cxx index b08299516..9441ef327 100644 --- a/src/input/DespotifyInputPlugin.cxx +++ b/src/input/DespotifyInputPlugin.cxx @@ -23,14 +23,13 @@ #include "InputStream.hxx" #include "InputPlugin.hxx" #include "tag/Tag.hxx" +#include "util/StringUtil.hxx" #include "Log.hxx" extern "C" { #include <despotify.h> } -#include <glib.h> - #include <unistd.h> #include <string.h> #include <errno.h> @@ -130,7 +129,7 @@ input_despotify_open(const char *url, struct ds_link *ds_link; struct ds_track *track; - if (!g_str_has_prefix(url, "spt://")) + if (!StringStartsWith(url, "spt://")) return nullptr; session = mpd_despotify_get_session(); |