LibMedia: Actually adjust incremental stream's request positions

This was unintentionally clobbering the prior modification to the
request position. Requesting data slightly earlier in the file is
intended to ensure that we have data if the demuxer decides to seek
backwards.
This commit is contained in:
Zaggy1024 2026-03-29 22:06:37 -05:00 committed by Gregory Bertilson
parent 7d3dd2d641
commit 8576527d8a

View file

@ -207,7 +207,7 @@ bool IncrementallyPopulatedStream::check_if_data_is_available_or_begin_request_w
cursor.m_active_timeout = now + CURSOR_ACTIVE_TIME;
auto potential_request_position = adjust_request_position(position);
potential_request_position = max(chunk->end(), position);
potential_request_position = max(chunk->end(), potential_request_position);
for (size_t i = 0; i < m_cursors.size(); i++) {
auto const& other_cursor = m_cursors[i];
if (!other_cursor.m_is_blocking)