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
8ba08edd
Commit
8ba08edd
authored
Jan 16, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queue: don't repeat current song in consume mode
Check consume mode in queue_next_order(), because the current song would be deleted as soon as it's finished; it cannot be played again.
parent
90d16af6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
NEWS
NEWS
+1
-0
queue.c
src/queue.c
+2
-2
No files found.
NEWS
View file @
8ba08edd
...
@@ -5,6 +5,7 @@ ver 0.15.8 (2009/??/??)
...
@@ -5,6 +5,7 @@ ver 0.15.8 (2009/??/??)
- ffmpeg, flac, vorbis: added more flac/vorbis MIME types
- ffmpeg, flac, vorbis: added more flac/vorbis MIME types
* dbUtils: return empty tag value only if no value was found
* dbUtils: return empty tag value only if no value was found
* decoder_thread: fix CUE track playback
* decoder_thread: fix CUE track playback
* queue: don't repeat current song in consume mode
ver 0.15.7 (2009/12/27)
ver 0.15.7 (2009/12/27)
...
...
src/queue.c
View file @
8ba08edd
...
@@ -45,14 +45,14 @@ queue_next_order(const struct queue *queue, unsigned order)
...
@@ -45,14 +45,14 @@ queue_next_order(const struct queue *queue, unsigned order)
if
(
queue
->
single
)
if
(
queue
->
single
)
{
{
if
(
queue
->
repeat
)
if
(
queue
->
repeat
&&
!
queue
->
consume
)
return
order
;
return
order
;
else
else
return
-
1
;
return
-
1
;
}
}
if
(
order
+
1
<
queue
->
length
)
if
(
order
+
1
<
queue
->
length
)
return
order
+
1
;
return
order
+
1
;
else
if
(
queue
->
repeat
)
else
if
(
queue
->
repeat
&&
(
order
>
0
||
!
queue
->
consume
)
)
/* restart at first song */
/* restart at first song */
return
0
;
return
0
;
else
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