clear queue on playback abort

This commit is contained in:
chme 2014-07-13 10:09:05 +02:00
parent 9527e06f71
commit fe2abfd123

View File

@ -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;