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
e1e3ce98
Commit
e1e3ce98
authored
Feb 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_api: check state before emitting initial seek command
This fixes seeking in the vorbis decoder during MPD startup.
parent
7855a325
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
NEWS
NEWS
+2
-0
decoder_api.c
src/decoder_api.c
+6
-0
No files found.
NEWS
View file @
e1e3ce98
ver 0.16.8 (2012/??/??)
* fix for libsamplerate assertion failure
* decoder:
- vorbis (and others): fix seeking at startup
ver 0.16.7 (2012/02/04)
...
...
src/decoder_api.c
View file @
e1e3ce98
...
...
@@ -89,6 +89,12 @@ decoder_prepare_initial_seek(struct decoder *decoder)
const
struct
decoder_control
*
dc
=
decoder
->
dc
;
assert
(
dc
->
pipe
!=
NULL
);
if
(
dc
->
state
!=
DECODE_STATE_DECODE
)
/* wait until the decoder has finished initialisation
(reading file headers etc.) before emitting the
virtual "SEEK" command */
return
false
;
if
(
decoder
->
initial_seek_running
)
/* initial seek has already begun - override any other
command */
...
...
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