aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index f0c25a694..e1f31b38c 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -236,6 +236,9 @@ playChunk(struct song *song, struct music_chunk *chunk,
}
}
+ if (chunk->length == 0)
+ return 0;
+
pcm_volume(chunk->data, chunk->length,
format, pc.softwareVolume);