LibWeb: Don't try to restart the media fetching process after an error
All errors specify that the resource selection algorithm should terminate, so let's not continue trying to fetch data.
This commit is contained in:
parent
b84473ff1d
commit
fa7f1792bc
1 changed files with 3 additions and 0 deletions
|
|
@ -1236,6 +1236,9 @@ Optional<String> HTMLMediaElement::verify_response_or_get_failure_reason(GC::Ref
|
|||
|
||||
void HTMLMediaElement::restart_fetch_at_offset(FetchData& fetch_data, u64 offset)
|
||||
{
|
||||
if (m_error)
|
||||
return;
|
||||
|
||||
if (!fetch_data.accepts_byte_ranges)
|
||||
return;
|
||||
cancel_the_fetching_process();
|
||||
|
|
|
|||
Loading…
Reference in a new issue