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
363050f4
Commit
363050f4
authored
Aug 01, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist_edit: fix "move" relative to current when there is no current song
Fixes Mantis #3770.
parent
dbe04c42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
NEWS
NEWS
+1
-0
playlist_edit.c
src/playlist_edit.c
+6
-1
No files found.
NEWS
View file @
363050f4
ver 0.17.5 (not yet released)
ver 0.17.5 (not yet released)
* protocol:
* protocol:
- fix "playlistadd" with URI
- fix "playlistadd" with URI
- fix "move" relative to current when there is no current song
* configure.ac:
* configure.ac:
- detect system "ar"
- detect system "ar"
...
...
src/playlist_edit.c
View file @
363050f4
...
@@ -396,7 +396,12 @@ playlist_move_range(struct playlist *playlist, struct player_control *pc,
...
@@ -396,7 +396,12 @@ playlist_move_range(struct playlist *playlist, struct player_control *pc,
?
(
int
)
queue_order_to_position
(
&
playlist
->
queue
,
?
(
int
)
queue_order_to_position
(
&
playlist
->
queue
,
playlist
->
current
)
playlist
->
current
)
:
-
1
;
:
-
1
;
if
(
to
<
0
&&
playlist
->
current
>=
0
)
{
if
(
to
<
0
)
{
if
(
currentSong
<
0
)
/* can't move relative to current song,
because there is no current song */
return
PLAYLIST_RESULT_BAD_RANGE
;
if
(
start
<=
(
unsigned
)
currentSong
&&
(
unsigned
)
currentSong
<
end
)
if
(
start
<=
(
unsigned
)
currentSong
&&
(
unsigned
)
currentSong
<
end
)
/* no-op, can't be moved to offset of itself */
/* no-op, can't be moved to offset of itself */
return
PLAYLIST_RESULT_SUCCESS
;
return
PLAYLIST_RESULT_SUCCESS
;
...
...
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