From 65f2ab3c351e9979b039deb986975fe36d9c1ce5 Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz Date: Sat, 6 Jan 2024 20:35:20 +0100 Subject: [PATCH] fix: fix crash with brokenfocus and camera-streamer --- libs/ustreamer.sh | 2 +- libs/v4l2_control.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ustreamer.sh b/libs/ustreamer.sh index 3f588eec..e4c7c451 100755 --- a/libs/ustreamer.sh +++ b/libs/ustreamer.sh @@ -24,7 +24,7 @@ run_mjpg() { run_ustreamer "${instance}" & done blockyfix - brokenfocus + brokenfocus "${cams}" return } diff --git a/libs/v4l2_control.sh b/libs/v4l2_control.sh index d7630219..167fc3a4 100755 --- a/libs/v4l2_control.sh +++ b/libs/v4l2_control.sh @@ -116,7 +116,7 @@ function brokenfocus { function main { local cur_val conf_val device - for cam in $(configured_cams); do + for cam in ${1}; do device="$(get_param "cam ${cam}" device)" cur_val="$(get_current_value "${device}")" conf_val="$(get_conf_value "${cam}")" @@ -133,7 +133,7 @@ function brokenfocus { } ### MAIN -main +main "${1}" }