mirror of
https://github.com/facefusion/facefusion.git
synced 2026-10-13 17:17:30 +02:00
Introduce video manager to handle broken videos
This commit is contained in:
1 parent
62483fdfad
commit
f50cb74099
1 file changed
-2
@@ -13,8 +13,6 @@ def get_video_capture(video_path : str) -> cv2.VideoCapture:
|
|||||||
|
|
||||||
|
|
||||||
def clear_video_pool() -> None:
|
def clear_video_pool() -> None:
|
||||||
global VIDEO_POOL_SET
|
|
||||||
|
|
||||||
for video_capture in VIDEO_POOL_SET.values():
|
for video_capture in VIDEO_POOL_SET.values():
|
||||||
video_capture.release()
|
video_capture.release()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user