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
d6a6f428
Commit
d6a6f428
authored
Oct 08, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player_control: eliminate PLAYER_COMMAND_PLAY
Sending PLAYER_COMMAND_STOP followed by PLAYER_COMMAND_QUEUE does the same. PLAYER_COMMAND_PLAY is redundant.
parent
fd3934b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
player_control.c
src/player_control.c
+1
-2
player_control.h
src/player_control.h
+0
-1
player_thread.c
src/player_thread.c
+0
-2
No files found.
src/player_control.c
View file @
d6a6f428
...
...
@@ -77,8 +77,7 @@ pc_play(struct song *song)
assert
(
pc
.
next_song
==
NULL
);
pc
.
next_song
=
song
;
player_command
(
PLAYER_COMMAND_PLAY
);
pc_enqueue_song
(
song
);
assert
(
pc
.
next_song
==
NULL
);
...
...
src/player_control.h
View file @
d6a6f428
...
...
@@ -35,7 +35,6 @@ enum player_command {
PLAYER_COMMAND_NONE
=
0
,
PLAYER_COMMAND_EXIT
,
PLAYER_COMMAND_STOP
,
PLAYER_COMMAND_PLAY
,
PLAYER_COMMAND_PAUSE
,
PLAYER_COMMAND_SEEK
,
PLAYER_COMMAND_CLOSE_AUDIO
,
...
...
src/player_thread.c
View file @
d6a6f428
...
...
@@ -347,7 +347,6 @@ static void player_process_command(struct player *player)
{
switch
(
pc
.
command
)
{
case
PLAYER_COMMAND_NONE
:
case
PLAYER_COMMAND_PLAY
:
case
PLAYER_COMMAND_STOP
:
case
PLAYER_COMMAND_EXIT
:
case
PLAYER_COMMAND_CLOSE_AUDIO
:
...
...
@@ -773,7 +772,6 @@ static gpointer player_task(G_GNUC_UNUSED gpointer arg)
while
(
1
)
{
switch
(
pc
.
command
)
{
case
PLAYER_COMMAND_PLAY
:
case
PLAYER_COMMAND_QUEUE
:
assert
(
pc
.
next_song
!=
NULL
);
...
...
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