Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
bd08990c
Commit
bd08990c
authored
Aug 08, 2002
by
Josh Coalson
Browse files
fix bug where metadata callback was seeking to the wrong place to write the seektable
parent
76e87258
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/seekable_stream_encoder.c
View file @
bd08990c
...
...
@@ -778,7 +778,7 @@ void metadata_callback_(const FLAC__StreamEncoder *encoder, const FLAC__StreamMe
FLAC__ASSERT
(
FLAC__format_seektable_is_legal
(
seekable_stream_encoder
->
private_
->
seek_table
));
if
(
seekable_stream_encoder
->
private_
->
seek_callback
(
seekable_stream_encoder
,
seekable_stream_encoder
->
private_
->
seektable_offset
,
seekable_stream_encoder
->
private_
->
client_data
)
!=
FLAC__SEEKABLE_STREAM_ENCODER_SEEK_STATUS_OK
)
{
if
(
seekable_stream_encoder
->
private_
->
seek_callback
(
seekable_stream_encoder
,
seekable_stream_encoder
->
private_
->
seektable_offset
+
FLAC__STREAM_METADATA_HEADER_LENGTH
,
seekable_stream_encoder
->
private_
->
client_data
)
!=
FLAC__SEEKABLE_STREAM_ENCODER_SEEK_STATUS_OK
)
{
seekable_stream_encoder
->
protected_
->
state
=
FLAC__SEEKABLE_STREAM_ENCODER_SEEK_ERROR
;
return
;
}
...
...
Write
Preview
Supports
Markdown
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