[][src]Constant libmpv_sys::mpv_format_MPV_FORMAT_FLAG

pub const mpv_format_MPV_FORMAT_FLAG: mpv_format = 3;

The basic type is int. The only allowed values are 0 ("no") and 1 ("yes").

Example for reading:

int result;
if (mpv_get_property(ctx, "property", MPV_FORMAT_FLAG, &result) < 0)
    goto error;
printf("%s\n", result ? "true" : "false");

Example for writing:

int flag = 1;
mpv_set_property(ctx, "property", MPV_FORMAT_FLAG, &flag);