diff options
author | Karol Kosek <krkk@serenityos.org> | 2022-07-26 20:54:39 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-26 23:59:06 +0100 |
commit | fe604593535746312eb7af87ddb4b5446e975ca3 (patch) | |
tree | 148e0369e0ba1730168729d3f8e5be7eb13e00e6 /Userland/Libraries/LibAudio | |
parent | 2878ad681efcbff0a18be4856f25124c46d281c9 (diff) | |
download | serenity-fe604593535746312eb7af87ddb4b5446e975ca3.zip |
LibAudio: Seek to the first frame on reset in FLAC
The files weren't starting exactly from the beginning before.
This happened because the parameter now takes the sample index, instead
of a seekpoint.
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r-- | Userland/Libraries/LibAudio/FlacLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibAudio/FlacLoader.cpp b/Userland/Libraries/LibAudio/FlacLoader.cpp index d8e4c2135f..fd89e5e7e8 100644 --- a/Userland/Libraries/LibAudio/FlacLoader.cpp +++ b/Userland/Libraries/LibAudio/FlacLoader.cpp @@ -201,7 +201,7 @@ ErrorOr<FlacRawMetadataBlock, LoaderError> FlacLoaderPlugin::next_meta_block(Big MaybeLoaderError FlacLoaderPlugin::reset() { - TRY(seek(m_data_start_location)); + TRY(seek(0)); m_current_frame.clear(); return {}; } |