It happens when using mad and ffmpeg. The mad plugin will parse only the duration and ScanStream will return true. Therefore, ffmpeg plugin won't be used and no tags will be scanned. --- src/TagStream.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/TagStream.cxx b/src/TagStream.cxx index dd5d8f7..3dd4eea 100644 --- a/src/TagStream.cxx +++ b/src/TagStream.cxx @@ -19,6 +19,7 @@ #include "config.h" #include "TagStream.hxx" +#include "tag/TagHandler.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" #include "decoder/DecoderList.hxx" @@ -58,7 +59,8 @@ tag_stream_scan(InputStream &is, const tag_handler &handler, void *ctx) is.LockRewind(IgnoreError()); return CheckDecoderPlugin(plugin, suffix, mime) && - plugin.ScanStream(is, handler, ctx); + plugin.ScanStream(is, handler, ctx) && + !tag_handler_invoke_is_empty(&handler, ctx); }); } -- 2.1.4 _______________________________________________ mpd-devel mailing list mpd-devel@musicpd.org http://mailman.blarg.de/listinfo/mpd-devel