aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/FLACDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-02 18:24:15 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 18:24:15 +0200
commit3c2d73d161814a1cac543f2623671feb0b7c8fe9 (patch)
treed2d8fd72cb37da0be523695c573c8aee8b31260a /src/decoder/FLACDecoderPlugin.cxx
parent343de8b8ab9b7291151f4b3f5ff12899fd479a8d (diff)
downloadmpd-3c2d73d161814a1cac543f2623671feb0b7c8fe9.tar.gz
mpd-3c2d73d161814a1cac543f2623671feb0b7c8fe9.tar.xz
mpd-3c2d73d161814a1cac543f2623671feb0b7c8fe9.zip
decoder/flac: add method FLACMetadataChain::Scan()
Merge common code.
Diffstat (limited to 'src/decoder/FLACDecoderPlugin.cxx')
-rw-r--r--src/decoder/FLACDecoderPlugin.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/decoder/FLACDecoderPlugin.cxx b/src/decoder/FLACDecoderPlugin.cxx
index 5de0ccef3..6bcc26c17 100644
--- a/src/decoder/FLACDecoderPlugin.cxx
+++ b/src/decoder/FLACDecoderPlugin.cxx
@@ -373,15 +373,7 @@ oggflac_scan_file(const char *file,
return false;
}
- FLACMetadataIterator iterator(chain);
- do {
- FLAC__StreamMetadata *block = iterator.GetBlock();
- if (block == nullptr)
- break;
-
- flac_scan_metadata(block, handler, handler_ctx);
- } while (iterator.Next());
-
+ chain.Scan(handler, handler_ctx);
return true;
}