Skip to content

Commit

Permalink
for now just use a flag...
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Apr 2, 2024
1 parent a8e92b7 commit c87c4f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions include/FLAC/stream_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,7 @@ FLAC_API FLAC__bool FLAC__stream_decoder_set_ogg_serial_number(FLAC__StreamDecod
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
#define FLAC__stream_decoder_set_ogg_chaining _FLAC__stream_decoder_set_ogg_chaining
FLAC_API FLAC__bool _FLAC__stream_decoder_set_ogg_chaining(FLAC__StreamDecoder* decoder, FLAC__bool value);
FLAC_API FLAC__bool FLAC__stream_decoder_set_ogg_chaining(FLAC__StreamDecoder* decoder, FLAC__bool value);

/** Set the "MD5 signature checking" flag. If \c true, the decoder will
* compute the MD5 signature of the unencoded audio data while decoding
Expand Down Expand Up @@ -935,8 +934,8 @@ FLAC_API const char *FLAC__stream_decoder_get_resolved_state_string(const FLAC__
* \retval FLAC__bool
* See above.
*/
#define FLAC__stream_decoder_get_ogg_chaining _FLAC__stream_decoder_get_ogg_chaining
FLAC_API FLAC__bool _FLAC__stream_decoder_get_ogg_chaining(const FLAC__StreamDecoder* decoder);
#define FLAC__OGG_CHAINING
FLAC_API FLAC__bool FLAC__stream_decoder_get_ogg_chaining(const FLAC__StreamDecoder* decoder);

/** Get the "MD5 signature checking" flag.
* This is the value of the setting, not whether or not the decoder is
Expand Down
4 changes: 2 additions & 2 deletions src/libFLAC/stream_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ FLAC_API FLAC__bool FLAC__stream_decoder_set_ogg_serial_number(FLAC__StreamDecod
#endif
}

FLAC_API FLAC__bool _FLAC__stream_decoder_set_ogg_chaining(FLAC__StreamDecoder* decoder, FLAC__bool value)
FLAC_API FLAC__bool FLAC__stream_decoder_set_ogg_chaining(FLAC__StreamDecoder* decoder, FLAC__bool value)
{
FLAC__ASSERT(0 != decoder);
FLAC__ASSERT(0 != decoder->protected_);
Expand Down Expand Up @@ -837,7 +837,7 @@ FLAC_API const char *FLAC__stream_decoder_get_resolved_state_string(const FLAC__
return FLAC__StreamDecoderStateString[decoder->protected_->state];
}

FLAC_API FLAC__bool _FLAC__stream_decoder_get_ogg_chaining(const FLAC__StreamDecoder* decoder)
FLAC_API FLAC__bool FLAC__stream_decoder_get_ogg_chaining(const FLAC__StreamDecoder* decoder)
{
FLAC__ASSERT(0 != decoder);
FLAC__ASSERT(0 != decoder->protected_);
Expand Down

0 comments on commit c87c4f4

Please sign in to comment.