Ignore in progress segment when adding stream recorder lookback (#73604)
This commit is contained in:
parent
d43178db06
commit
f276523ef3
1 changed files with 1 additions and 1 deletions
|
@ -510,7 +510,7 @@ class Stream:
|
|||
num_segments = min(int(lookback // hls.target_duration), MAX_SEGMENTS)
|
||||
# Wait for latest segment, then add the lookback
|
||||
await hls.recv()
|
||||
recorder.prepend(list(hls.get_segments())[-num_segments:])
|
||||
recorder.prepend(list(hls.get_segments())[-num_segments - 1 : -1])
|
||||
|
||||
async def async_get_image(
|
||||
self,
|
||||
|
|
Loading…
Add table
Reference in a new issue