<br><br><div class="gmail_quote">2010/3/24 Edward Hervey <span dir="ltr">&lt;<a href="mailto:bilboed@gmail.com">bilboed@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<div class="im"><br>
On Wed, 2010-03-24 at 11:05 +0100, Mattias Barthiel wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have just made use of the nice feature of the gst-bus to pass messages<br>
&gt; from an element to the application.<br>
&gt;<br>
&gt; How do you message in the other direction? application-&gt;element?<br>
<br>
</div>  The bus is only designed for message passing from element to upstream<br>
elements (and eventually application).<br>
<br></blockquote><div><br>You can post your own application-specific messages on the bus:<br><br><a href="http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMessage.html#gst-message-new-application">http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMessage.html#gst-message-new-application</a><br>
<br>but unless you&#39;ve written elements specifically for your application that are expecting such messages, this is only really useful for passing messages between different components in your app in a thread-safe way (assuming they are in different threads).<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  If you want to pass instructions to an element... Just use the<br>
property system by adding properties to your element and setting them<br>
(ex: g_object_set (myelement, &quot;thisvariable&quot;, thisvalue, NULL)).<br></blockquote><div><br>Adding properties is definitely more straightforward/cleaner than handling application-specific messages.<br><br>Best,<br>
Tristan<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    Edward<br>
<br>
&gt;<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Mattias<br>
<div><div></div><div class="h5">&gt;<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&amp;#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tristan Matthews<br>email: <a href="mailto:tristan@sat.qc.ca">tristan@sat.qc.ca</a><br>web: <a href="http://tristanswork.blogspot.com">http://tristanswork.blogspot.com</a><br>