mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-04-06 14:34:01 +08:00
clip: load metadata params within OpenpilotPrefix (#37634)
fix: move metadata loading inside OpenpilotPrefix context
This commit is contained in:
@@ -302,11 +302,11 @@ def clip(route: Route, output: str, start: int, end: int, headless: bool = True,
|
||||
logger.error("No messages to render")
|
||||
sys.exit(1)
|
||||
|
||||
metadata = load_route_metadata(route) if show_metadata else None
|
||||
if headless:
|
||||
rl.set_config_flags(rl.ConfigFlags.FLAG_WINDOW_HIDDEN)
|
||||
|
||||
with OpenpilotPrefix(shared_download_cache=True):
|
||||
metadata = load_route_metadata(route) if show_metadata else None
|
||||
camera_paths = route.qcamera_paths() if use_qcam else route.camera_paths()
|
||||
frame_queue = FrameQueue(camera_paths, start, end, fps=FRAMERATE, use_qcam=use_qcam)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user