diff data/fileio/MP3FileReader.h @ 1310:aa1b1fc2d018 mp3-gapless

Stop reporting sync errors only when we really are at eof, i.e. after the input callback has been called again (previously we just tested whether we'd buffered up all the input, which of course we do in one go at the start)
author Chris Cannam
date Tue, 29 Nov 2016 16:45:29 +0000
parents 9f9f55a8af92
children ff9697592bef
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.h	Tue Nov 29 14:35:27 2016 +0000
+++ b/data/fileio/MP3FileReader.h	Tue Nov 29 16:45:29 2016 +0000
@@ -124,6 +124,7 @@
     struct DecoderData {
 	unsigned char const *start;
 	sv_frame_t length;
+        bool finished;
 	MP3FileReader *reader;
     };