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
44444e1b
Commit
44444e1b
authored
Aug 20, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Thread: on late SEEK, start decoder at seek position
Previously, a bogus value (whatever happened to be still in `start_time`) was used.
parent
ca450663
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
NEWS
NEWS
+1
-0
Thread.cxx
src/decoder/Thread.cxx
+5
-0
No files found.
NEWS
View file @
44444e1b
...
...
@@ -5,6 +5,7 @@ ver 0.21.14 (not yet released)
- sidplay: strip text from "Date" tag
* player
- fix crash after song change
- fix seek position after restarting the decoder
ver 0.21.13 (2019/08/06)
* input
...
...
src/decoder/Thread.cxx
View file @
44444e1b
...
...
@@ -455,6 +455,11 @@ static void
decoder_run_song
(
DecoderControl
&
dc
,
const
DetachedSong
&
song
,
const
char
*
uri
,
Path
path_fs
)
{
if
(
dc
.
command
==
DecoderCommand
::
SEEK
)
/* if the SEEK command arrived too late, start the
decoder at the seek position */
dc
.
start_time
=
dc
.
seek_time
;
DecoderBridge
bridge
(
dc
,
dc
.
start_time
.
IsPositive
(),
/* pass the song tag only if it's
authoritative, i.e. if it's a local
...
...
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