DOCS/client_api_examples/simple: fix option

"input-x11-keyboard" still works, but is a deprecated alias with the
same functionality.
This commit is contained in:
wm4 2015-02-23 16:08:38 +01:00
parent d77fdc8f82
commit cf395e1754
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ 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"));
mpv_set_option_string(ctx, "input-x11-keyboard", "yes");
mpv_set_option_string(ctx, "input-vo-keyboard", "yes");
int val = 1;
check_error(mpv_set_option(ctx, "osc", MPV_FORMAT_FLAG, &val));