libFLAC : new function returns client_data from decoder
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
parent
972454edf8
commit
a0027fadfa
@ -57,4 +57,9 @@ typedef struct FLAC__StreamDecoderProtected {
|
||||
*/
|
||||
uint32_t FLAC__stream_decoder_get_input_bytes_unconsumed(const FLAC__StreamDecoder *decoder);
|
||||
|
||||
/*
|
||||
* return client_data from decoder
|
||||
*/
|
||||
FLAC_API void *get_client_data_from_decoder(FLAC__StreamDecoder *decoder);
|
||||
|
||||
#endif
|
||||
|
@ -3395,3 +3395,8 @@ FLAC__bool file_eof_callback_(const FLAC__StreamDecoder *decoder, void *client_d
|
||||
|
||||
return feof(decoder->private_->file)? true : false;
|
||||
}
|
||||
|
||||
void *get_client_data_from_decoder(FLAC__StreamDecoder *decoder)
|
||||
{
|
||||
return decoder->private_->client_data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user