mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
clear queue on playback abort
This commit is contained in:
parent
9527e06f71
commit
fe2abfd123
@ -469,6 +469,9 @@ player_get_current_pos(uint64_t *pos, struct timespec *ts, int commit)
|
||||
static void
|
||||
playback_abort(void);
|
||||
|
||||
static int
|
||||
queue_clear(struct player_command *cmd);
|
||||
|
||||
static void
|
||||
player_laudio_status_cb(enum laudio_state status)
|
||||
{
|
||||
@ -2216,6 +2219,8 @@ playback_abort(void)
|
||||
else
|
||||
source_stop(cur_streaming);
|
||||
|
||||
queue_clear(NULL);
|
||||
|
||||
cur_playing = NULL;
|
||||
cur_streaming = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user