clip: load metadata params within OpenpilotPrefix (#37634)

fix: move metadata loading inside OpenpilotPrefix context
This commit is contained in:
David
2026-03-10 18:01:31 -05:00
committed by GitHub
parent 5927316788
commit 40b61a8212

View File

@@ -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)