diff options
author | wm4 <wm4@nowhere> | 2014-02-24 23:02:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-24 23:02:50 +0100 |
commit | af6305b88a7a79ae221cae810b3547d463789135 (patch) | |
tree | d2ae7861fe2945043b5463b7e4930fc83b849c88 /DOCS/client_api_examples | |
parent | 761975d47b4e8536df837f999642430d19087b79 (diff) | |
download | mpv-af6305b88a7a79ae221cae810b3547d463789135.tar.bz2 mpv-af6305b88a7a79ae221cae810b3547d463789135.tar.xz |
client api examples: set an option with MPV_FORMAT_FLAG
Diffstat (limited to 'DOCS/client_api_examples')
-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)); |