summaryrefslogtreecommitdiff
path: root/src/TagStream.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-26 13:23:42 +0100
committerMax Kellermann <max@duempel.org>2016-02-26 13:48:38 +0100
commit3d9652ae356f23d645200ca83cdce25ff4fb9690 (patch)
tree8e5508988af542b3018f2b5e7f306ec9b4ccd960 /src/TagStream.hxx
parenta9130cb99c7c51f81b641c6a24834063507f0164 (diff)
TagStream: add TagBuilder overload with ScanGenericTags() fallback
This commit adds support for APE/ID3 tags from NFS/SMB files. See http://bugs.musicpd.org/view.php?id=4270
Diffstat (limited to 'src/TagStream.hxx')
-rw-r--r--src/TagStream.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/TagStream.hxx b/src/TagStream.hxx
index a8690d62b..5d766bd8a 100644
--- a/src/TagStream.hxx
+++ b/src/TagStream.hxx
@@ -24,6 +24,7 @@
class InputStream;
struct TagHandler;
+class TagBuilder;
/**
* Scan the tags of an #InputStream. Invokes matching decoder
@@ -38,4 +39,18 @@ tag_stream_scan(InputStream &is, const TagHandler &handler, void *ctx);
bool
tag_stream_scan(const char *uri, const TagHandler &handler, void *ctx);
+/**
+ * Scan the tags of an #InputStream. Invokes matching decoder
+ * plugins, and falls back to generic scanners (APE and ID3) if no
+ * tags were found (but the file was recognized).
+ *
+ * @return true if the file was recognized (even if no metadata was
+ * found)
+ */
+bool
+tag_stream_scan(InputStream &is, TagBuilder &builder);
+
+bool
+tag_stream_scan(const char *uri, TagBuilder &builder);
+
#endif