mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Pass HTMLMediaElement::FetchData& to restart_fetch_at_offset
No behavior change.
This commit is contained in:
committed by
Gregory Bertilson
parent
d146adfd66
commit
15d0bc86fc
Notes:
github-actions[bot]
2026-02-18 19:15:35 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/15d0bc86fc6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7922
@@ -1213,9 +1213,9 @@ Optional<String> HTMLMediaElement::verify_response_or_get_failure_reason(GC::Ref
|
||||
return {};
|
||||
}
|
||||
|
||||
void HTMLMediaElement::restart_fetch_at_offset(NonnullRefPtr<FetchData> const& fetch_data, u64 offset)
|
||||
void HTMLMediaElement::restart_fetch_at_offset(FetchData& fetch_data, u64 offset)
|
||||
{
|
||||
if (!fetch_data->accepts_byte_ranges)
|
||||
if (!fetch_data.accepts_byte_ranges)
|
||||
return;
|
||||
if (m_fetch_controller && m_fetch_controller->state() == Fetch::Infrastructure::FetchController::State::Ongoing)
|
||||
m_fetch_controller->stop_fetch();
|
||||
|
||||
Reference in New Issue
Block a user