ST77xx memory corruption + mp3 sync using library + mutex for poll in stream() - release

This commit is contained in:
Philippe G
2020-08-29 22:07:07 -07:00
parent ce369638da
commit 7e097a7ee9
5 changed files with 42 additions and 15 deletions

View File

@@ -243,8 +243,6 @@ static decode_state mad_decode(void) {
MAD(m, synth_frame, &m->synth, &m->frame);
if (decode.new_stream) {
// seems that mad can use some help in term of sync detection
if (m->stream.next_frame[0] != 0xff || (m->stream.next_frame[1] & 0xf0) != 0xf0) continue;
LOCK_O;
LOG_INFO("setting track_start");
output.next_sample_rate = decode_newstream(m->synth.pcm.samplerate, output.supported_rates);