Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Hugo Beauzée-Luyssen
flac
Commits
a0027fad
Commit
a0027fad
authored
Dec 04, 2017
by
Christophe DUMONT
Committed by
Erik de Castro Lopo
Jan 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libFLAC : new function returns client_data from decoder
Signed-off-by:
Erik de Castro Lopo
<
erikd@mega-nerd.com
>
parent
972454ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
src/libFLAC/include/protected/stream_decoder.h
src/libFLAC/include/protected/stream_decoder.h
+5
-0
src/libFLAC/stream_decoder.c
src/libFLAC/stream_decoder.c
+5
-0
No files found.
src/libFLAC/include/protected/stream_decoder.h
View file @
a0027fad
...
...
@@ -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
src/libFLAC/stream_decoder.c
View file @
a0027fad
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment