Commit fc9014f7 authored by Ben Boeckel's avatar Ben Boeckel Committed by Max Kellermann

PlayerThread: Only drop 0 length packets without tags

Fixes a regression from 752dfb3d which caused the current chunk to be flushed as soon as new replaygain information was found. If this occurs on a tag chunk, it has no data (length 0) and is then skipped before pushing it to all of the outputs. This change allows 0-length chunks through if they contain a tag and they are now appearing in mplayer and mpv properly.
parent b39ab761
......@@ -724,7 +724,7 @@ play_chunk(player_control &pc,
if (chunk->tag != nullptr)
update_song_tag(song, *chunk->tag);
if (chunk->length == 0) {
if (chunk->IsEmpty()) {
buffer.Return(chunk);
return true;
}
......
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