aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/ApeLoader.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-09-30 22:03:01 +0200
committerMax Kellermann <max@duempel.org>2015-09-30 22:21:46 +0200
commit356c829b767863512da1792c048f6ddbeb8457a3 (patch)
tree7b71365eb164719ddf12d081766520ee4938bc28 /src/tag/ApeLoader.cxx
parentffbb5c48ed3edaeb72b26b61637eb3bd1cea9e32 (diff)
downloadmpd-356c829b767863512da1792c048f6ddbeb8457a3.tar.gz
mpd-356c829b767863512da1792c048f6ddbeb8457a3.tar.xz
mpd-356c829b767863512da1792c048f6ddbeb8457a3.zip
util/StringView: new utility class
Diffstat (limited to 'src/tag/ApeLoader.cxx')
-rw-r--r--src/tag/ApeLoader.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tag/ApeLoader.cxx b/src/tag/ApeLoader.cxx
index 8c89f34c9..c42d088a8 100644
--- a/src/tag/ApeLoader.cxx
+++ b/src/tag/ApeLoader.cxx
@@ -21,6 +21,7 @@
#include "ApeLoader.hxx"
#include "system/ByteOrder.hxx"
#include "fs/FileSystem.hxx"
+#include "util/StringView.hxx"
#include <stdint.h>
#include <assert.h>
@@ -89,7 +90,7 @@ ape_scan_internal(FILE *fp, ApeTagCallback callback)
if (remaining < size)
break;
- if (!callback(flags, key, p, size))
+ if (!callback(flags, key, {p, size}))
break;
p += size;