LibAudio: Always add a seek point once the FLAC header has parsed

This commit is contained in:
Zaggy1024 2023-07-05 11:59:47 -05:00 committed by Linus Groh
parent 9d5819e9e2
commit ddb7b59af0
Notes: sideshowbarker 2024-07-17 01:13:25 +09:00

View file

@ -147,6 +147,7 @@ MaybeLoaderError FlacLoaderPlugin::parse_header()
}
dbgln_if(AFLACLOADER_DEBUG, "Parsed FLAC header: blocksize {}-{}{}, framesize {}-{}, {}Hz, {}bit, {} channels, {} samples total ({:.2f}s), MD5 {}, data start at {:x} bytes, {} headers total (skipped {})", m_min_block_size, m_max_block_size, is_fixed_blocksize_stream() ? " (constant)" : "", m_min_frame_size, m_max_frame_size, m_sample_rate, pcm_bits_per_sample(m_sample_format), m_num_channels, m_total_samples, static_cast<float>(m_total_samples) / static_cast<float>(m_sample_rate), m_md5_checksum, m_data_start_location, total_meta_blocks, total_meta_blocks - meta_blocks_parsed);
TRY(m_seektable.insert_seek_point({ 0, 0 }));
return {};
}