fix double free bug, add logging, update to python 3.14

This commit is contained in:
Anthony Samms
2025-10-27 18:41:28 -04:00
parent 104ec726b0
commit 3b0a6bed97
29 changed files with 739 additions and 640 deletions

View File

@@ -1,4 +1,5 @@
from pathlib import Path
import logging
import pyray as ray
from moviepy import VideoFileClip
@@ -6,6 +7,7 @@ from moviepy import VideoFileClip
from libs.audio import audio
from libs.utils import get_current_ms
logger = logging.getLogger(__name__)
class VideoPlayer:
def __init__(self, path: Path):
@@ -61,7 +63,7 @@ class VideoPlayer:
return texture
except Exception as e:
print(f"Error loading frame at index {index}: {e}")
logger.error(f"Error loading frame at index {index}: {e}")
return None
def _manage_buffer(self):