From a23869379c6d3d32c9160f8ca508273963128a84 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Sat, 7 Mar 2020 12:18:49 +0200 Subject: js: osd-overlay update: return the command result (match 7a76b577) Currently only useful for the new 'compute_bounds' command key. --- player/javascript/defaults.js | 3 +-- 1 file changed, 1 insertion(+), 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() { -- cgit v1.2.3