From d2f585af6c69dee8bac5c29923dd333b197e5eff Mon Sep 17 00:00:00 2001 From: Nicholas Young Date: Fri, 18 Oct 2024 17:40:26 -0700 Subject: [PATCH] fixed reference issue --- src/main.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 9f7f21e..12fc5e9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -120,8 +120,10 @@ pub fn main() !void { assert(status == hlo.HAILO_SUCCESS); std.debug.print("input flushed!\n", .{}); + + var output_frame_size: usize = 0; - status = hlo.hailo_get_output_vstream_frame_size(input_vstreams[0], &output_frame_size); + status = hlo.hailo_get_output_vstream_frame_size(output_vstreams[0], &output_frame_size); assert(status == hlo.HAILO_SUCCESS); std.debug.print("output frame size is: {d}\n", .{ output_frame_size }); @@ -130,6 +132,7 @@ pub fn main() !void { status = hlo.hailo_vstream_read_raw_buffer(output_vstreams[0], output_data.ptr, output_frame_size); assert(status == hlo.HAILO_SUCCESS); + std.debug.print("Output finished reading! Cleanup time\n", .{}); _ = hlo.hailo_release_output_vstreams(&output_vstreams, output_vstream_size);