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
3a4e6670
Commit
3a4e6670
authored
Apr 09, 2014
by
Weng Xuetian
Committed by
Max Kellermann
Apr 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistEdit: don't interrupt playback when current song gets deleted
parent
ce18c36e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
NEWS
NEWS
+1
-0
PlaylistEdit.cxx
src/PlaylistEdit.cxx
+8
-10
No files found.
NEWS
View file @
3a4e6670
...
...
@@ -3,6 +3,7 @@ ver 0.18.10 (not yet released)
- ffmpeg: fix seeking bug
- ffmpeg: handle unknown stream start time
- gme: fix memory leak
* don't interrupt playback when current song gets deleted
ver 0.18.9 (2014/03/02)
* protocol
...
...
src/PlaylistEdit.cxx
View file @
3a4e6670
...
...
@@ -234,12 +234,8 @@ playlist::DeleteInternal(PlayerControl &pc,
if
(
playing
&&
current
==
(
int
)
songOrder
)
{
const
bool
paused
=
pc
.
GetState
()
==
PlayerState
::
PAUSE
;
/* the current song is going to be deleted: stop the player */
pc
.
Stop
();
playing
=
false
;
/* see which song is going to be played instead */
/* the current song is going to be deleted: see which
song is going to be played instead */
current
=
queue
.
GetNextOrder
(
current
);
if
(
current
==
(
int
)
songOrder
)
...
...
@@ -248,10 +244,12 @@ playlist::DeleteInternal(PlayerControl &pc,
if
(
current
>=
0
&&
!
paused
)
/* play the song after the deleted one */
PlayOrder
(
pc
,
current
);
else
/* no songs left to play, stop playback
completely */
Stop
(
pc
);
else
{
/* stop the player */
pc
.
Stop
();
playing
=
false
;
}
*
queued_p
=
nullptr
;
}
else
if
(
current
==
(
int
)
songOrder
)
...
...
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