aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_thread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index d150c4303..622eab072 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -268,8 +268,11 @@ play_chunk(struct song *song, struct music_chunk *chunk,
pcm_volume(chunk->data, chunk->length,
format, pc.software_volume);
- if (!playAudio(chunk->data, chunk->length))
+ if (!playAudio(chunk->data, chunk->length)) {
+ pc.errored_song = dc.current_song;
+ pc.error = PLAYER_ERROR_AUDIO;
return false;
+ }
pc.total_play_time += sizeToTime * chunk->length;
return true;