Skip to content

Commit dbfebe8

Browse files
author
arch
committed
fix queue overrun warning
1 parent 924e420 commit dbfebe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

funscript_editor/data/ffmpegstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def run(self) -> None:
360360
self.watchdog.trigger()
361361
time.sleep(self.sleep_time)
362362
wait_counter += 1
363-
if self.current_frame > 2 and wait_counter == 2500:
363+
if self.current_frame - self.queue_size > 2 and wait_counter == 2500:
364364
self.logger.error("FFmpeg Frame Buffer overrun!!!")
365365

366366
self.frame_buffer.put(frame)

0 commit comments

Comments
 (0)