mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 23:02:37 +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:
parent
9cf45d8300
commit
a23869379c
@ -214,8 +214,7 @@ mp.create_osd_overlay = function create_osd_overlay(format) {
|
|||||||
cmd.res_x = Math.round(this.res_x);
|
cmd.res_x = Math.round(this.res_x);
|
||||||
cmd.res_y = Math.round(this.res_y);
|
cmd.res_y = Math.round(this.res_y);
|
||||||
|
|
||||||
mp.command_native(cmd);
|
return mp.command_native(cmd);
|
||||||
return mp.last_error() ? undefined : true;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
remove: function ass_remove() {
|
remove: function ass_remove() {
|
||||||
|
Loading…
Reference in New Issue
Block a user