Commit cc164cc8 authored by Max Kellermann's avatar Max Kellermann

player: don't play empty chunks

An empty chunk may happen when it only contains a tag, but no PCM data. Don't call playAudio() then.
parent e5137706
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment