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> <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>> 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>> On 8/11/06, Deeptendu Bikash <<a href="mailto:dbikash@gmail.com">dbikash@gmail.com</a>> wrote:<br>> > I found the problem in my code: I did not set the port to listen to. But I'm
<br>> > not able to get the stuff up. If I write:<br>> > gint value = 1234;<br>> > g_object_get_property(G_OBJECT(udpsrc), "port", &value);<br>> > I get a seg fault.<br>><br>> g_object_get_property() is a vararg function and many varargs
<br>> functions (if not all) requires a terminator argument at the end. In<br>> 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 "port" is of type G_TYPE_INT, it's either<br><br> gint port;<br><br> g_object_get (obj, "port", &port, NULL);<br><br>or something like:<br><br> GValue val = { 0, };
<br> gint port;<br><br> g_value_init (&val, G_TYPE_INT);<br> g_object_get_property (G_OBJECT (obj), "port", &val);<br> port = g_value_get_int (&val);<br> g_value_unset (&val);<br><br> Cheers
<br> -Tim<br></blockquote></div><br>