Skip to content
Draft
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
4 changes: 2 additions & 2 deletions api/liboni/oni.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ int oni_read_frame(const oni_ctx ctx, oni_frame_t **frame)
total_size += rsize;

// Direct frame data's view into the pre-collected buffer
assert(ctx->shared_rbuf->read_pos + rsize <= ctx->shared_rbuf->end_pos
assert(ctx->shared_rbuf->read_pos + rsize <= ctx->shared_rbuf->end_pos
&& "Attempted to read past buffer end");
iframe->private.f.data = ctx->shared_rbuf->read_pos;
ctx->shared_rbuf->read_pos += rsize;
Expand Down Expand Up @@ -1225,7 +1225,7 @@ static inline int _oni_read_config(oni_ctx ctx, oni_config_t reg, oni_reg_val_t

static int _oni_ensure_read_buffer(oni_ctx ctx)
{
// NB: This function can only be called if the device table has been
// NB: This function can only be called if the device table has been
// populated and contains devices that produce data.
if (ctx->max_read_frame_size == 0)
return ONI_EINVALARG;
Expand Down
2 changes: 1 addition & 1 deletion api/liboni/oni.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ typedef struct {
const oni_fifo_time_t time; // Frame time (ACQCLKHZ)
const oni_fifo_dat_t dev_idx; // Device index that produced or accepts the frame
const oni_fifo_dat_t data_sz; // Size in bytes of data buffer
char *data; // Raw data block
void *data; // Raw data block

} oni_frame_t;

Expand Down