core: When reading part of a `Substream` slice for the tag reader, don't throw out the rest of it

This commit is contained in:
David Wendt 2023-08-22 23:07:54 -04:00 committed by kmeisthax
parent 046a1f0efc
commit 6e3c468592
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ impl Read for SubstreamTagReader {
buf[..len].copy_from_slice(&data[..len]);
drop(data);
*chunk = chunk.to_start_and_end(len, 0);
*chunk = chunk.to_start_and_end(len, chunk.len());
if chunk.is_empty() {
self.current_audio_data = None;