diff options
-rw-r--r-- | DOCS/client_api_examples/simple.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/simple.c b/DOCS/client_api_examples/simple.c index c5d8dc175c..d2c95540fe 100644 --- a/DOCS/client_api_examples/simple.c +++ b/DOCS/client_api_examples/simple.c @@ -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)); |