Commit 1e034577 authored by Max Kellermann's avatar Max Kellermann

lib/xiph/VorbisComments: disable VorbisCommentToReplayGain() if Vorbis is disabled

Fixes build failure.
parent 43ac264f
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "util/StringView.hxx" #include "util/StringView.hxx"
#include "config.h" #include "config.h"
#ifdef ENABLE_VORBIS_DECODER
#ifndef HAVE_TREMOR #ifndef HAVE_TREMOR
#include <vorbis/codec.h> #include <vorbis/codec.h>
#else #else
...@@ -63,6 +65,8 @@ VorbisCommentToReplayGain(ReplayGainInfo &rgi, ...@@ -63,6 +65,8 @@ VorbisCommentToReplayGain(ReplayGainInfo &rgi,
return found; return found;
} }
#endif /* ENABLE_VORBIS_DECODER */
static void static void
vorbis_scan_comment(StringView comment, TagHandler &handler) noexcept vorbis_scan_comment(StringView comment, TagHandler &handler) noexcept
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment