Skip to content

Commit

Permalink
Fixed wrong size field in VIDIOC_S_EXT_CTRLS ioctl (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: Mario Vigliar <[email protected]>
  • Loading branch information
zzambia and Mario Vigliar authored Aug 8, 2024
1 parent 33817d4 commit b7a5001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ impl Device {
control::Value::None => {}
control::Value::Integer(val) => {
control.__bindgen_anon_1.value64 = val;
control.size = std::mem::size_of::<i64>() as u32;
control.size = 0;
}
control::Value::Boolean(val) => {
control.__bindgen_anon_1.value64 = val as i64;
control.size = std::mem::size_of::<i64>() as u32;
control.size = 0;
}
control::Value::String(ref val) => {
control.__bindgen_anon_1.string = val.as_ptr() as *mut std::os::raw::c_char;
Expand Down

0 comments on commit b7a5001

Please sign in to comment.