Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix crash with brokenfocus and camera-streamer #224

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/ustreamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ run_mjpg() {
run_ustreamer "${instance}" &
done
blockyfix
brokenfocus
brokenfocus "${cams}"
return
}

Expand Down
4 changes: 2 additions & 2 deletions libs/v4l2_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")"
Expand All @@ -133,7 +133,7 @@ function brokenfocus {
}

### MAIN
main
main "${1}"

}

Expand Down
Loading