diff --git a/src/main.zig b/src/main.zig index 04dbb93..082407c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -89,7 +89,7 @@ pub fn main() void { var input_frame_size: usize = 0; - status = hlo.hailo_get_input_vstream_frame_size(input_vstreams, &input_frame_size); + status = hlo.hailo_get_input_vstream_frame_size(&input_vstreams, &input_frame_size); assert(status == hlo.HAILO_SUCCESS); const frame_count = input_frame_size / @sizeOf(u8); @@ -105,11 +105,11 @@ pub fn main() void { // Here we simulate taking our data and chunking it into frame_size, then uploading each frame until we have uploaded // all of our data for (0..frame_count) |_| { - status = hlo.hailo_vstream_write_raw_buffer(input_vstreams, input_data, input_frame_size); + status = hlo.hailo_vstream_write_raw_buffer(&input_vstreams, input_data, input_frame_size); assert(status == hlo.HAILO_SUCCESS); } - status = hlo.hailo_flush_input_vstream(input_vstreams); + status = hlo.hailo_flush_input_vstream(&input_vstreams); assert(status == hlo.HAILO_SUCCESS);