Dynamic change of glshader element

Holger weber at telerob.de
Wed Aug 31 14:14:08 UTC 2016


Hi,

I don't want to spam the mailing list, but I don't find any good
documentation for gst and python.

After adding:
gi.require_version('GstGL', '1.0')
from gi.repository import GstGL 

I can get a reference to the shader element by:
sh = el_glshader.get_property("shader")

But if I change a value with....
sh.set_uniform_1f("separation", -0.01)

the application crashes. The behavior also doesn't change if I try to set a
variable which is not uniform or trying to set a variable like "iDontExist".

Do I need to pause the pipeline, lock an element first or do something else?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Dynamic-change-of-glshader-element-tp4669514p4679331.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list