summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-06-10 20:59:52 +0200
committerMax Kellermann <max@musicpd.org>2020-06-10 21:02:07 +0200
commitc5cc256bf2e40cc4b92ad331101bcfff525fda0c (patch)
tree3f75ffc7fa310e570b27f9a7cbb3c497017e1e5c
parent563c7318f9305419053a876bb7bf4d1eae2517ce (diff)
decoder/gme: use Path::GetSuffix()
-rw-r--r--src/decoder/plugins/GmeDecoderPlugin.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx
index 82f47fdd3..9d952890a 100644
--- a/src/decoder/plugins/GmeDecoderPlugin.cxx
+++ b/src/decoder/plugins/GmeDecoderPlugin.cxx
@@ -30,7 +30,6 @@
#include "util/ScopeExit.hxx"
#include "util/StringCompare.hxx"
#include "util/StringFormat.hxx"
-#include "util/UriUtil.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
@@ -109,7 +108,7 @@ static Music_Emu*
LoadGmeAndM3u(GmeContainerPath container) {
const char *path = container.path.c_str();
- const char *suffix = uri_get_suffix(path);
+ const auto *suffix = container.path.GetSuffix();
Music_Emu *emu;
const char *gme_err =
@@ -303,7 +302,7 @@ gme_container_scan(Path path_fs)
if (num_songs < 2)
return list;
- const char *subtune_suffix = uri_get_suffix(path_fs.c_str());
+ const auto *subtune_suffix = path_fs.GetSuffix();
TagBuilder tag_builder;