summaryrefslogtreecommitdiff
path: root/pkg/mpv/patch/0005-Support-lua-5.4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/mpv/patch/0005-Support-lua-5.4.patch')
-rw-r--r--pkg/mpv/patch/0005-Support-lua-5.4.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/mpv/patch/0005-Support-lua-5.4.patch b/pkg/mpv/patch/0005-Support-lua-5.4.patch
index 02363474..9b3fbdf2 100644
--- a/pkg/mpv/patch/0005-Support-lua-5.4.patch
+++ b/pkg/mpv/patch/0005-Support-lua-5.4.patch
@@ -1,4 +1,4 @@
-From 8ab50c2f6569389e574546a306bd73da142c060b Mon Sep 17 00:00:00 2001
+From ae44889fc30137f38b74cd0119fe7196c0a1b043 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 3 Dec 2023 11:57:01 -0800
Subject: [PATCH] Support lua 5.4
@@ -9,10 +9,10 @@ Subject: [PATCH] Support lua 5.4
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/player/lua.c b/player/lua.c
-index b3a7167dce..0f2249bc96 100644
+index 63547694e2..0b8c632acd 100644
--- a/player/lua.c
+++ b/player/lua.c
-@@ -452,11 +452,6 @@ static int load_lua(struct mp_script_args *args)
+@@ -455,11 +455,6 @@ static int load_lua(struct mp_script_args *args)
stats_register_thread_cputime(ctx->stats, "cpu");
@@ -25,10 +25,10 @@ index b3a7167dce..0f2249bc96 100644
if (!L) {
MP_FATAL(ctx, "Could not initialize Lua.\n");
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
-index a244280a35..799b6a16df 100644
+index 3ba1890a92..945af861f0 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
-@@ -170,7 +170,7 @@ local margins_opts = {
+@@ -175,7 +175,7 @@ local margins_opts = {
function get_virt_scale_factor()
local w, h = mp.get_osd_size()
if w <= 0 or h <= 0 then
@@ -37,7 +37,7 @@ index a244280a35..799b6a16df 100644
end
return osc_param.playresx / w, osc_param.playresy / h
end
-@@ -188,7 +188,7 @@ end
+@@ -193,7 +193,7 @@ end
function set_virt_mouse_area(x0, y0, x1, y1, name)
local sx, sy = get_virt_scale_factor()
@@ -46,7 +46,7 @@ index a244280a35..799b6a16df 100644
end
function scale_value(x0, x1, y0, y1, val)
-@@ -294,7 +294,7 @@ end
+@@ -299,7 +299,7 @@ end
-- multiplies two alpha values, formular can probably be improved
function mult_alpha(alphaA, alphaB)
@@ -55,7 +55,7 @@ index a244280a35..799b6a16df 100644
end
function add_area(name, x1, y1, x2, y2)
-@@ -313,7 +313,7 @@ function ass_append_alpha(ass, alpha, modifier)
+@@ -318,7 +318,7 @@ function ass_append_alpha(ass, alpha, modifier)
if state.animation then
av = mult_alpha(av, state.animation)
end
@@ -65,5 +65,5 @@ index a244280a35..799b6a16df 100644
ass:append(string.format("{\\1a&H%X&\\2a&H%X&\\3a&H%X&\\4a&H%X&}",
--
-2.42.0
+2.44.0