[][src]Function libmpv_sys::mpv_render_context_report_swap

pub unsafe extern "C" fn mpv_render_context_report_swap(
    ctx: *mut mpv_render_context
)

Tell the renderer that a frame was flipped at the given time. This is optional, but can help the player to achieve better timing.

Note that calling this at least once informs libmpv that you will use this function. If you use it inconsistently, expect bad video playback.

If this is called while no video is initialized, it is ignored.

@param ctx a valid render context