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:
parent
046a1f0efc
commit
6e3c468592
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue