Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f9130f42
Commit
f9130f42
authored
Jul 05, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/flac: try to recover from seek error()
libFLAC API documentation suggests that FLAC__stream_decoder_flush() should be called to recover from FLAC__STREAM_DECODER_SEEK_ERROR.
parent
faf2eeaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
FlacDecoderPlugin.cxx
src/decoder/plugins/FlacDecoderPlugin.cxx
+9
-1
No files found.
src/decoder/plugins/FlacDecoderPlugin.cxx
View file @
f9130f42
...
...
@@ -209,8 +209,16 @@ flac_decoder_loop(struct flac_data *data, FLAC__StreamDecoder *flac_dec,
/* regular end of stream */
return
;
case
FLAC__STREAM_DECODER_OGG_ERROR
:
case
FLAC__STREAM_DECODER_SEEK_ERROR
:
/* try to recover from seek error */
if
(
!
FLAC__stream_decoder_flush
(
flac_dec
))
{
LogError
(
flac_domain
,
"FLAC__stream_decoder_flush() failed"
);
return
;
}
break
;
case
FLAC__STREAM_DECODER_OGG_ERROR
:
case
FLAC__STREAM_DECODER_ABORTED
:
case
FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
:
/* an error, fatal enough for us to abort the
...
...
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