Skip to content

Commit

Permalink
pass mutable pointer to timebase handler
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 22, 2019
1 parent ceef3d7 commit bc0917d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub trait TimebaseHandler: Send {
/// The first cycle after jack_set_timebase_callback() is also treated as
/// a new position, or the first cycle after jack_activate() if the client
/// had been inactive.
fn timebase(&mut self, _: &Client, _state: TransportState, _n_frames: Frames, _pos: Position, _is_new_pos: bool) {}
fn timebase(&mut self, _: &Client, _state: TransportState, _n_frames: Frames, _pos: *mut Position, _is_new_pos: bool) {}
}

unsafe extern "C" fn thread_init_callback<N, P, T>(data: *mut libc::c_void)
Expand Down Expand Up @@ -227,7 +227,7 @@ where
0 => false,
_ => true,
};
ctx.timebase.timebase(&ctx.client, state, n_frames, *pos, is_new_pos)
ctx.timebase.timebase(&ctx.client, state, n_frames, pos, is_new_pos)
}

unsafe extern "C" fn freewheel<N, P, T>(starting: libc::c_int, data: *mut libc::c_void)
Expand Down

0 comments on commit bc0917d

Please sign in to comment.