Thanks to all developers out there...the stuff is now working.<br><br>
Regards,<br>
Deeptendu<br>
<br><div><span class="gmail_quote">On 8/11/06, <b class="gmail_sendername">Tim Müller</b> &lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 2006-08-11 at 11:23 +0300, Zeeshan Ali wrote:<br><br>&gt; On 8/11/06, Deeptendu Bikash &lt;<a href="mailto:dbikash@gmail.com">dbikash@gmail.com</a>&gt; wrote:<br>&gt; &gt; I found the problem in my code: I did not set the port to listen to. But I'm
<br>&gt; &gt; not able to get the stuff up. If I write:<br>&gt; &gt;&nbsp;&nbsp;gint value = 1234;<br>&gt; &gt; g_object_get_property(G_OBJECT(udpsrc), &quot;port&quot;, &amp;value);<br>&gt; &gt;&nbsp;&nbsp;I get a seg fault.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;g_object_get_property() is a vararg function and many varargs
<br>&gt; functions (if not all) requires a terminator argument at the end. In<br>&gt; case of g_object_get_property() that terminator is 'NULL'.<br><br>Actually, g_object_get_property() is not a vararg function, but<br>g_object_get() - the function you're supposed to use here - is.
<br><br>Assuming the property &quot;port&quot; is of type G_TYPE_INT, it's either<br><br>&nbsp;&nbsp;gint port;<br><br>&nbsp;&nbsp;g_object_get (obj, &quot;port&quot;, &amp;port, NULL);<br><br>or something like:<br><br>&nbsp;&nbsp;GValue val = { 0, };
<br>&nbsp;&nbsp;gint port;<br><br>&nbsp;&nbsp;g_value_init (&amp;val, G_TYPE_INT);<br>&nbsp;&nbsp;g_object_get_property (G_OBJECT (obj), &quot;port&quot;, &amp;val);<br>&nbsp;&nbsp;port = g_value_get_int (&amp;val);<br>&nbsp;&nbsp;g_value_unset (&amp;val);<br><br> Cheers
<br>&nbsp;&nbsp;-Tim<br></blockquote></div><br>