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
7d52284a
Commit
7d52284a
authored
Mar 10, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player_thread: moved code to player_seek_decoder()
Reset player.xfade and player.buffering from within player_seek_decoder(), not in the player_process_command() switch statement.
parent
3ef8cba2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
player_thread.c
src/player_thread.c
+15
-12
No files found.
src/player_thread.c
View file @
7d52284a
...
...
@@ -247,12 +247,23 @@ static bool player_seek_decoder(struct player *player)
where
=
0
.
0
;
ret
=
dc_seek
(
&
pc
.
notify
,
where
);
if
(
ret
)
pc
.
elapsed_time
=
where
;
if
(
!
ret
)
{
player_command_finished
();
return
false
;
}
pc
.
elapsed_time
=
where
;
player_command_finished
();
return
ret
;
player
->
xfade
=
XFADE_UNKNOWN
;
/* abort buffering when the user has requested
a seek */
player
->
buffering
=
false
;
audio_output_all_cancel
();
return
true
;
}
static
void
player_process_command
(
struct
player
*
player
)
...
...
@@ -294,15 +305,7 @@ static void player_process_command(struct player *player)
break
;
case
PLAYER_COMMAND_SEEK
:
if
(
player_seek_decoder
(
player
))
{
player
->
xfade
=
XFADE_UNKNOWN
;
/* abort buffering when the user has requested
a seek */
player
->
buffering
=
false
;
audio_output_all_cancel
();
}
player_seek_decoder
(
player
);
break
;
case
PLAYER_COMMAND_CANCEL
:
...
...
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