mirror of https://github.com/mpv-player/mpv
client api examples: set an option with MPV_FORMAT_FLAG
This commit is contained in:
parent
761975d47b
commit
af6305b88a
|
@ -21,7 +21,8 @@ int main(int argc, char *argv[])
|
|||
// Enable default key bindings, so the user can actually interact with
|
||||
// the player (and e.g. close the window).
|
||||
check_error(mpv_set_option_string(ctx, "input-default-bindings", "yes"));
|
||||
check_error(mpv_set_option_string(ctx, "osc", "yes"));
|
||||
int val = 1;
|
||||
check_error(mpv_set_option(ctx, "osc", MPV_FORMAT_FLAG, &val));
|
||||
|
||||
// Done setting up options.
|
||||
check_error(mpv_initialize(ctx));
|
||||
|
|
Loading…
Reference in New Issue