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
276843ed
Commit
276843ed
authored
Jan 23, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: don't unpause on delete
When you delete a song from the playlist which was paused, MPD forgot that it was paused and started playing the next song.
parent
032640f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+1
-0
playlist.c
src/playlist.c
+3
-1
No files found.
NEWS
View file @
276843ed
...
...
@@ -29,6 +29,7 @@ ver 0.15 - (200?/??/??)
* --create-db starts the MPD daemon instead of exiting
* playlist_directory and music_directory are optional
* playlist: recalculate the queued song after random is toggled
* playlist: don't unpause on delete
ver 0.14.1 (2009/01/17)
...
...
src/playlist.c
View file @
276843ed
...
...
@@ -647,6 +647,8 @@ enum playlist_result deleteFromPlaylist(unsigned song)
clearPlayerQueue
();
if
(
playlist
.
playing
&&
playlist
.
current
==
(
int
)
songOrder
)
{
bool
paused
=
getPlayerState
()
==
PLAYER_STATE_PAUSE
;
/* the current song is going to be deleted: stop the player */
playerWait
();
...
...
@@ -658,7 +660,7 @@ enum playlist_result deleteFromPlaylist(unsigned song)
if
(
playlist
.
current
==
(
int
)
songOrder
)
playlist
.
current
=
-
1
;
if
(
playlist
.
current
>=
0
)
if
(
playlist
.
current
>=
0
&&
!
paused
)
/* play the song after the deleted one */
playPlaylistOrderNumber
(
playlist
.
current
);
else
...
...
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