[−][src]Type Definition libmpv_sys::mpv_stream_cb_cancel_fn
type mpv_stream_cb_cancel_fn = Option<unsafe extern "C" fn(cookie: *mut c_void)>;
Cancel callback used to implement a custom stream.
This callback is used to interrupt any current or future read and seek operations. It will be called from a separate thread than the demux thread, and should not block.
This callback can be NULL.
Available since API 1.106.
@param cookie opaque cookie identifying the stream, returned from mpv_stream_cb_open_fn