Allow caption jobs to pause between frames

This commit is contained in:
Sleeps
2026-10-07 12:24:38 +01:00
parent 5c158818f1
commit 82a8e94d37
+3
View File
@@ -427,6 +427,7 @@ def _caption_queue(
completed_offset: int = 0,
total_frames: int | None = None,
frame_source: FrameSource | None = None,
before_frame: Callable[[], None] | None = None,
) -> tuple[int, int]:
if not routed_rows:
return 0, 0
@@ -446,6 +447,8 @@ def _caption_queue(
failed = 0
try:
for row, route, score, reason in routed_rows:
if before_frame is not None:
before_frame()
if progress is not None:
progress(
{