mpv_stream_cb_info.cookie

Opaque user-provided value, which will be passed to the other callbacks. The close callback will be called to release the cookie. It is not interpreted by mpv. It doesn't even need to be a valid pointer.

The user sets this in the mpv_stream_cb_open_ro_fn callback.

struct mpv_stream_cb_info
void* cookie;

Meta