diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-11-20 11:04:20 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-11-20 11:04:20 +1100 |
| commit | b3b512f10e0570f7dc8a04e1613f1234e5532728 (patch) | |
| tree | d8861607af715c09321165b76d57a4c58e232088 /src/audio/audio_decoder.cpp | |
| parent | d36f314a57b5136f6a7dabfa6cb78a16f1994f4f (diff) | |
| download | tangara-fw-b3b512f10e0570f7dc8a04e1613f1234e5532728.tar.gz | |
Don't start readahead until parsing the stream's header is finished
...but also disable readahead for now anyway, since it's unstable
Diffstat (limited to 'src/audio/audio_decoder.cpp')
| -rw-r--r-- | src/audio/audio_decoder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<codecs::IStream> 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())); |
