[][src]Constant libmpv::mpv_format::Flag

pub const Flag: u32 = 3; // 3u32

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);