[][src]Function libmpv_sys::mpv_get_property_string

pub unsafe extern "C" fn mpv_get_property_string(
    ctx: *mut mpv_handle,
    name: *const c_char
) -> *mut c_char

Return the value of the property with the given name as string. This is equivalent to mpv_get_property() with MPV_FORMAT_STRING.

See MPV_FORMAT_STRING for character encoding issues.

On error, NULL is returned. Use mpv_get_property() if you want fine-grained error reporting.

@param name The property name. @return Property value, or NULL if the property can't be retrieved. Free the string with mpv_free().