From 6b416ce6be840dcd62aadb70817be602b5a73946 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Oct 2012 07:11:41 +0200 Subject: decoder/flac: move flac_scan_file2() to main plugin file --- src/decoder/FLACDecoderPlugin.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/decoder/FLACDecoderPlugin.cxx') diff --git a/src/decoder/FLACDecoderPlugin.cxx b/src/decoder/FLACDecoderPlugin.cxx index cfe5e5680..b8d5173b5 100644 --- a/src/decoder/FLACDecoderPlugin.cxx +++ b/src/decoder/FLACDecoderPlugin.cxx @@ -90,7 +90,15 @@ static bool flac_scan_file(const char *file, const struct tag_handler *handler, void *handler_ctx) { - return flac_scan_file2(file, handler, handler_ctx); + FLACMetadataChain chain; + if (!chain.Read(file)) { + g_debug("Failed to read FLAC tags: %s", + chain.GetStatusString()); + return false; + } + + chain.Scan(handler, handler_ctx); + return true; } /** -- cgit v1.2.3