Skip to content

Commit a53052e

Browse files
committed
FLACDecoderFoxen: cleanup
1 parent 42d08cc commit a53052e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AudioTools/AudioCodecs/CodecFLACFoxen.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ namespace audio_tools {
1111

1212
/**
1313
* @brief Foxen FLAC Decoder using https://github.com/astoeckel/libfoxenflac
14+
* Unlike FLACDecoder which is a streaming decoder, this is a simple
15+
* AudioDecoder implementation.
1416
* @ingroup codecs
1517
* @ingroup decoder
1618
* @author Phil Schatzmann
@@ -121,7 +123,7 @@ class FLACDecoderFoxen : public AudioDecoder {
121123

122124
bool decode() {
123125
TRACED();
124-
if (flac == nullptr) return false;
126+
if (!is_active) return false;
125127
uint32_t out_len = out.size();
126128
uint32_t buf_len = write_buffer.available();
127129
uint32_t buf_len_result = buf_len;

0 commit comments

Comments
 (0)