fix(typos): fixing typos and small mistakes

This commit is contained in:
CarolinePascal
2026-05-11 19:18:48 +02:00
parent cd2316460d
commit e22ecbbcda
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -948,6 +948,9 @@ def get_video_info(
# Add additional encoder configuration if provided # Add additional encoder configuration if provided
if camera_encoder_config is not None: if camera_encoder_config is not None:
for field_name, field_value in asdict(camera_encoder_config).items(): for field_name, field_value in asdict(camera_encoder_config).items():
# vcodec is already populated from the video stream
if field_name == "vcodec":
continue
video_info.setdefault(f"video.{field_name}", field_value) video_info.setdefault(f"video.{field_name}", field_value)
return video_info return video_info
@@ -63,7 +63,7 @@ class TestCameraEncoderThread:
fps=fps, fps=fps,
vcodec=enc_cfg.vcodec, vcodec=enc_cfg.vcodec,
pix_fmt=enc_cfg.pix_fmt, pix_fmt=enc_cfg.pix_fmt,
codec_options=enc_cfg.get_codec_options(), codec_options=enc_cfg.get_codec_options(as_strings=True),
frame_queue=frame_queue, frame_queue=frame_queue,
result_queue=result_queue, result_queue=result_queue,
stop_event=stop_event, stop_event=stop_event,
@@ -114,7 +114,7 @@ class TestCameraEncoderThread:
fps=fps, fps=fps,
vcodec=enc_cfg.vcodec, vcodec=enc_cfg.vcodec,
pix_fmt=enc_cfg.pix_fmt, pix_fmt=enc_cfg.pix_fmt,
codec_options=enc_cfg.get_codec_options(), codec_options=enc_cfg.get_codec_options(as_strings=True),
frame_queue=frame_queue, frame_queue=frame_queue,
result_queue=result_queue, result_queue=result_queue,
stop_event=stop_event, stop_event=stop_event,
@@ -148,7 +148,7 @@ class TestCameraEncoderThread:
fps=fps, fps=fps,
vcodec=enc_cfg.vcodec, vcodec=enc_cfg.vcodec,
pix_fmt=enc_cfg.pix_fmt, pix_fmt=enc_cfg.pix_fmt,
codec_options=enc_cfg.get_codec_options(), codec_options=enc_cfg.get_codec_options(as_strings=True),
frame_queue=frame_queue, frame_queue=frame_queue,
result_queue=result_queue, result_queue=result_queue,
stop_event=stop_event, stop_event=stop_event,