mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25: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
|
static void
|
||||||
playback_abort(void);
|
playback_abort(void);
|
||||||
|
|
||||||
|
static int
|
||||||
|
queue_clear(struct player_command *cmd);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
player_laudio_status_cb(enum laudio_state status)
|
player_laudio_status_cb(enum laudio_state status)
|
||||||
{
|
{
|
||||||
@ -2216,6 +2219,8 @@ playback_abort(void)
|
|||||||
else
|
else
|
||||||
source_stop(cur_streaming);
|
source_stop(cur_streaming);
|
||||||
|
|
||||||
|
queue_clear(NULL);
|
||||||
|
|
||||||
cur_playing = NULL;
|
cur_playing = NULL;
|
||||||
cur_streaming = NULL;
|
cur_streaming = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user