mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[player] Remove unnecessary check for plid != 0 and set plid always to 0
if queue changed
This commit is contained in:
parent
7aba0bf332
commit
9a5b67031e
@ -3386,9 +3386,7 @@ playerqueue_add(struct player_command *cmd)
|
|||||||
queue_shuffle(queue, cur_id);
|
queue_shuffle(queue, cur_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO [refactor] Unnecessary if, always set plid to 0 after adding items
|
cur_plid = 0;
|
||||||
if (cur_plid != 0)
|
|
||||||
cur_plid = 0;
|
|
||||||
cur_plversion++;
|
cur_plversion++;
|
||||||
|
|
||||||
listener_notify(LISTENER_PLAYLIST);
|
listener_notify(LISTENER_PLAYLIST);
|
||||||
@ -3411,9 +3409,7 @@ playerqueue_add_next(struct player_command *cmd)
|
|||||||
if (shuffle)
|
if (shuffle)
|
||||||
queue_shuffle(queue, cur_id);
|
queue_shuffle(queue, cur_id);
|
||||||
|
|
||||||
//TODO [refactor] Unnecessary if, always set plid to 0 after adding items
|
cur_plid = 0;
|
||||||
if (cur_plid != 0)
|
|
||||||
cur_plid = 0;
|
|
||||||
cur_plversion++;
|
cur_plversion++;
|
||||||
|
|
||||||
listener_notify(LISTENER_PLAYLIST);
|
listener_notify(LISTENER_PLAYLIST);
|
||||||
|
Loading…
Reference in New Issue
Block a user