js: osd-overlay update: return the command result (match 7a76b577)

Currently only useful for the new 'compute_bounds' command key.
This commit is contained in:
Avi Halachmi (:avih) 2020-03-07 12:18:49 +02:00
parent 9cf45d8300
commit a23869379c
1 changed files with 1 additions and 2 deletions

View File

@ -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() {