From ddb7b59af0f6e297cb717c89cb9e25135ec47f61 Mon Sep 17 00:00:00 2001 From: Zaggy1024 Date: Wed, 5 Jul 2023 11:59:47 -0500 Subject: [PATCH] LibAudio: Always add a seek point once the FLAC header has parsed --- Userland/Libraries/LibAudio/FlacLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibAudio/FlacLoader.cpp b/Userland/Libraries/LibAudio/FlacLoader.cpp index ecf509e4560..88265552544 100644 --- a/Userland/Libraries/LibAudio/FlacLoader.cpp +++ b/Userland/Libraries/LibAudio/FlacLoader.cpp @@ -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(m_total_samples) / static_cast(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 {}; }