From 641542793eb7865b9c5af5f0d420bb1b5bd25a47 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 8 Oct 2015 00:24:23 +0200 Subject: [PATCH] Improve the help in the theme a bit. --- theme.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/theme.lua b/theme.lua index 82339f8..bf88f98 100644 --- a/theme.lua +++ b/theme.lua @@ -56,6 +56,13 @@ end -- current time in seconds. width and height are the dimensions of -- the output, although you can ignore them if you don't need them -- (they're useful if you want to e.g. know what to resample by). +-- +-- You should return two objects; the chain itself, and then a +-- function (taking no parameters) that is run just before rendering. +-- The function needs to call connect_signal on any inputs, so that +-- it gets updated video data for the given frame. (You are allowed +-- to switch which input your input is getting from between frames, +-- but not calling connect_signal results in undefined behavior.) -- If you want to change any parameters in the chain, this is also -- the right place. -- -- 2.39.2