diff --git a/src/lib/xiph/VorbisPicture.cxx b/src/lib/xiph/VorbisPicture.cxx index dcdf75efc..9339b6715 100644 --- a/src/lib/xiph/VorbisPicture.cxx +++ b/src/lib/xiph/VorbisPicture.cxx @@ -21,20 +21,19 @@ #include "lib/crypto/Base64.hxx" #include "tag/Id3Picture.hxx" #include "tag/Handler.hxx" -#include "util/StringView.hxx" #include "config.h" #include void -ScanVorbisPicture(StringView value, TagHandler &handler) noexcept +ScanVorbisPicture(std::string_view value, TagHandler &handler) noexcept { #ifdef HAVE_BASE64 - if (value.size > 1024 * 1024) + if (value.size() > 1024 * 1024) /* ignore image files which are too huge */ return; - size_t debase64_size = CalculateBase64OutputSize(value.size); + size_t debase64_size = CalculateBase64OutputSize(value.size()); auto debase64_buffer = std::make_unique(debase64_size); try { diff --git a/src/lib/xiph/VorbisPicture.hxx b/src/lib/xiph/VorbisPicture.hxx index b8aa5f762..9ac42282d 100644 --- a/src/lib/xiph/VorbisPicture.hxx +++ b/src/lib/xiph/VorbisPicture.hxx @@ -20,10 +20,11 @@ #ifndef MPD_VORBIS_PICTURE_HXX #define MPD_VORBIS_PICTURE_HXX -struct StringView; +#include + class TagHandler; void -ScanVorbisPicture(StringView value, TagHandler &handler) noexcept; +ScanVorbisPicture(std::string_view value, TagHandler &handler) noexcept; #endif