LibWeb: Remove an unused capture in the media data request callback

This commit is contained in:
Zaggy1024
2026-04-06 19:26:00 -05:00
committed by Alexander Kalenik
parent a19c40aac5
commit 6a46bcaf35
Notes: github-actions[bot] 2026-04-08 11:04:38 +00:00

View File

@@ -1171,7 +1171,7 @@ void HTMLMediaElement::load_url_resource(URL::URL const& url_record, Function<vo
m_remote_fetch_data = make<RemoteFetchData>();
m_remote_fetch_data->url_record = url_record;
m_remote_fetch_data->stream = Media::IncrementallyPopulatedStream::create_empty();
m_remote_fetch_data->stream->set_data_request_callback(GC::weak_callback(*this, [&fetch_data = *m_remote_fetch_data](auto& self, u64 offset) {
m_remote_fetch_data->stream->set_data_request_callback(GC::weak_callback(*this, [](auto& self, u64 offset) {
self.restart_fetch_at_offset(offset);
}));
m_remote_fetch_data->failure_callback = move(failure_callback);