From b3b512f10e0570f7dc8a04e1613f1234e5532728 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 20 Nov 2023 11:04:20 +1100 Subject: Don't start readahead until parsing the stream's header is finished ...but also disable readahead for now anyway, since it's unstable --- src/audio/audio_decoder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/audio/audio_decoder.cpp') diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp index 03402cfc..a58268b0 100644 --- a/src/audio/audio_decoder.cpp +++ b/src/audio/audio_decoder.cpp @@ -133,6 +133,7 @@ auto Decoder::BeginDecoding(std::shared_ptr stream) -> bool { codecs::ICodec::ErrorString(open_res.error()).c_str()); return false; } + stream->SetPreambleFinished(); if (open_res->total_samples) { timer_.reset(new Timer(open_res.value())); -- cgit v1.2.3