<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
There probably was a bug in the preset handling code that relied on
static variables somewhere. The glshader element has since been
redesigned in master and is very unlikely to receive any updates in
1.6.<br>
<br>
Cheers<br>
-Matt<br>
<br>
On 26/10/15 21:39, Hamdi Rakkez wrote:<br>
<blockquote
cite="mid:%3CCAFXmeVv_B9mTuSS7jzE9QF1Ns5VfsUTiLoRegy9jiRu98d4Azg@mail.gmail.com%3E"
type="cite">
<div dir="ltr">
<div class="gmail_default" style=""><font face="trebuchet ms,
sans-serif" color="#073763" size="4">Revive thread</font><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Oct 21, 2015 at 5:25 PM, Hamdi
Rakkez <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:hamdi.rakez.selotec@gmail.com"
target="_blank">hamdi.rakez.selotec@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Hi list,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">I'm using
gstreamer-1.5.90 on ubuntu 14.04LTS.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Here is the
problem :</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">When using
two consecutive <b>glshader</b> element in a pipeline
and one of them have a <b>preset</b> property(uniform
variable file path), that preset is not taken into
consideration (as if it does not exist, and all the
uniform variable into the fragment shader take the value
0.0)</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">pipeLine :</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">gst-launch-1.0
videotestsrc ! glupload ! glshader
location=fragment1.frag ! glshader
location=fragment2.frag
preset=fragment2_uniform_variables.preset ! gldownload !
glimagesink</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">when
removing the first <b>glshader</b> element from the
pipeline, <b>preset</b> property works fine.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Does anyone
knows if this is a bug or I'm missing something here ?</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">PS: Some
behavior if I replace <b>preset</b> with <b>vars</b>
and declare uniform variables withing the pipeline.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Thanks in
advance.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Best
regards,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Hamdi</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>