[][src]Function libmpv_sys::mpv_set_property_async

pub unsafe extern "C" fn mpv_set_property_async(
    ctx: *mut mpv_handle,
    reply_userdata: u64,
    name: *const c_char,
    format: mpv_format,
    data: *mut c_void
) -> c_int

Set a property asynchronously. You will receive the result of the operation as MPV_EVENT_SET_PROPERTY_REPLY event. The mpv_event.error field will contain the result status of the operation. Otherwise, this function is similar to mpv_set_property().

Safe to be called from mpv render API threads.

@param reply_userdata see section about asynchronous calls @param name The property name. @param format see enum mpv_format. @param[in] data Option value. The value will be copied by the function. It will never be modified by the client API. @return error code if sending the request failed