1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:07:45 +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:
Karol Kosek 2022-07-26 20:54:39 +02:00 committed by Linus Groh
parent 2878ad681e
commit fe60459353

View file

@ -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 {};
} }