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
a6bb2748
Commit
a6bb2748
authored
Sep 07, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderThread: clear the pipe when handling late SEEK
See code comment. Fixes assertion failure in decoder_command_finished().
parent
7ada7def
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
NEWS
NEWS
+1
-0
DecoderThread.cxx
src/DecoderThread.cxx
+11
-1
No files found.
NEWS
View file @
a6bb2748
...
...
@@ -3,6 +3,7 @@ ver 0.18.14 (not yet released)
- fix range parser bug on certain 32 bit architectures
* decoder
- audiofile: fix crash after seeking
- fix assertion failure after seeking
ver 0.18.13 (2014/08/31)
* protocol
...
...
src/DecoderThread.cxx
View file @
a6bb2748
...
...
@@ -26,6 +26,7 @@
#include "Song.hxx"
#include "system/FatalError.hxx"
#include "Mapper.hxx"
#include "MusicPipe.hxx"
#include "fs/Traits.hxx"
#include "fs/AllocatedPath.hxx"
#include "DecoderAPI.hxx"
...
...
@@ -418,9 +419,18 @@ decoder_task(void *arg)
dc
.
replay_gain_prev_db
=
dc
.
replay_gain_db
;
dc
.
replay_gain_db
=
0
;
/* fall through */
decoder_run
(
dc
);
break
;
case
DecoderCommand
:
:
SEEK
:
/* this seek was too late, and the decoder had
already finished; start a new decoder */
/* we need to clear the pipe here; usually the
PlayerThread is responsible, but it is not
aware that the decoder has finished */
dc
.
pipe
->
Clear
(
*
dc
.
buffer
);
decoder_run
(
dc
);
break
;
...
...
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