From f6932af7edc9181b68111fc2f3e03ca3463db9f3 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 1 Nov 2021 19:00:14 +0100 Subject: [PATCH] nlab.lua fix showpicture --- data/luaplugins/nlab.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/data/luaplugins/nlab.lua b/data/luaplugins/nlab.lua index 5619d29ee..6ed851425 100644 --- a/data/luaplugins/nlab.lua +++ b/data/luaplugins/nlab.lua @@ -125,17 +125,18 @@ elseif a[2] == "misc" then end misc = nil ---[[ FIXME: won't work elseif a[2] == "video" then -- see src/gui/lua/lua_video.cpp video = video.new() if a[3] == "showpicture" and a[4] ~= nil then - r = video:ShowPicture(a[4]) + video:zapitStopPlayBack() + r = video:ShowPicture(arg[4]) elseif a[3] == "stoppicture" then + video:zapitStopPlayBack(false) r = video:StopPicture() end -]] + end if r ~= nil and r ~= "" then