mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
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.
This commit is contained in:
parent
2878ad681e
commit
fe60459353
Notes:
sideshowbarker
2024-07-17 08:32:50 +09:00
Author: https://github.com/krkk
Commit: fe60459353
Pull-request: https://github.com/SerenityOS/serenity/pull/14701
Reviewed-by: https://github.com/kleinesfilmroellchen
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ ErrorOr<FlacRawMetadataBlock, LoaderError> FlacLoaderPlugin::next_meta_block(Big
|
||||||
|
|
||||||
MaybeLoaderError FlacLoaderPlugin::reset()
|
MaybeLoaderError FlacLoaderPlugin::reset()
|
||||||
{
|
{
|
||||||
TRY(seek(m_data_start_location));
|
TRY(seek(0));
|
||||||
m_current_frame.clear();
|
m_current_frame.clear();
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue