1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +00:00

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

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