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
e6b37703
Commit
e6b37703
authored
Nov 05, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player/Thread: copy pc.seek_time in ActivateDecoder()
If this gets called while seeking, do the right thing. This moves the elapsed_time setter from method Run(), which is now redundant.
parent
990f473b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Thread.cxx
src/player/Thread.cxx
+1
-2
No files found.
src/player/Thread.cxx
View file @
e6b37703
...
...
@@ -380,7 +380,7 @@ Player::ActivateDecoder()
song
=
pc
.
next_song
;
pc
.
next_song
=
nullptr
;
elapsed_time
=
SongTime
::
zero
()
;
elapsed_time
=
pc
.
seek_time
;
/* set the "starting" flag, which will be cleared by
player_check_decoder_startup() */
...
...
@@ -948,7 +948,6 @@ Player::Run()
pc
.
Lock
();
pc
.
state
=
PlayerState
::
PLAY
;
elapsed_time
=
pc
.
seek_time
;
pc
.
CommandFinished
();
...
...
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