LibWeb: Pass HTMLMediaElement::FetchData& to restart_fetch_at_offset

No behavior change.
This commit is contained in:
Zaggy1024
2026-02-11 17:49:58 -06:00
committed by Gregory Bertilson
parent d146adfd66
commit 15d0bc86fc
Notes: github-actions[bot] 2026-02-18 19:15:35 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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();