saving status before scene frame fix after rust change
This commit is contained in:
@@ -178,10 +178,16 @@ class StreamManager:
|
||||
self.processor.set_on_new_frames(on_new_frames)
|
||||
if self.recorder:
|
||||
self.recorder.capture_now(on_raw_frame=self.processor.on_captured_frame)
|
||||
else:
|
||||
# Rust mode: extract current frame directly from the growing fMP4.
|
||||
self.processor.capture_now_from_file()
|
||||
|
||||
def update_scene_threshold(self, new_threshold: float):
|
||||
if self.recorder:
|
||||
self.recorder.update_scene_threshold(new_threshold)
|
||||
else:
|
||||
# Rust mode: restart scene detector with new threshold.
|
||||
self.processor.restart_scene_detector(threshold=new_threshold)
|
||||
|
||||
# -- Processor delegation --
|
||||
|
||||
|
||||
Reference in New Issue
Block a user