client api examples: set an option with MPV_FORMAT_FLAG

This commit is contained in:
wm4 2014-02-24 23:02:50 +01:00
parent 761975d47b
commit af6305b88a
1 changed files with 2 additions and 1 deletions

View File

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