diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-03-07 12:18:49 +0200 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2020-03-07 12:37:35 +0200 |
commit | a23869379c6d3d32c9160f8ca508273963128a84 (patch) | |
tree | 8929db5915736e2e8d51a9d471ef4c5d89459629 | |
parent | 9cf45d8300b4e89927e61af9e4a9381cc3d75078 (diff) | |
download | mpv-a23869379c6d3d32c9160f8ca508273963128a84.tar.bz2 mpv-a23869379c6d3d32c9160f8ca508273963128a84.tar.xz |
js: osd-overlay update: return the command result (match 7a76b577)
Currently only useful for the new 'compute_bounds' command key.
-rw-r--r-- | player/javascript/defaults.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/player/javascript/defaults.js b/player/javascript/defaults.js index 31f944727d..d356d7d3fe 100644 --- a/player/javascript/defaults.js +++ b/player/javascript/defaults.js @@ -214,8 +214,7 @@ mp.create_osd_overlay = function create_osd_overlay(format) { cmd.res_x = Math.round(this.res_x); cmd.res_y = Math.round(this.res_y); - mp.command_native(cmd); - return mp.last_error() ? undefined : true; + return mp.command_native(cmd); }, remove: function ass_remove() { |