From af6305b88a7a79ae221cae810b3547d463789135 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Feb 2014 23:02:50 +0100 Subject: [PATCH] client api examples: set an option with MPV_FORMAT_FLAG --- DOCS/client_api_examples/simple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));