[gst-devel] I need help with RTP pipeline

Wim Taymans wim at fluendo.com
Fri Aug 11 10:37:09 CEST 2006


On Fri, 2006-08-11 at 11:23 +0300, Zeeshan Ali wrote:
> Hello!
> 
> 1. Please put seperate topics and seperate email subjects.
> 
> 2. Please also try to remove unnessesary junk from your emails.
> 
> 3. Now your question:
> 
> On 8/11/06, Deeptendu Bikash <dbikash at gmail.com> wrote:
> > I found the problem in my code: I did not set the port to listen to. But I'm
> > not able to get the stuff up. If I write:
> >  gint value = 1234;
> > g_object_get_property(G_OBJECT(udpsrc), "port", &value);
> >  I get a seg fault.
> 
>    g_object_get_property() is a vararg function and many varargs
> functions (if not all) requires a terminator argument at the end. In
> case of g_object_get_property() that terminator is 'NULL'.
> 
Also:

g_object_get_property() takes a GValue * as a last arg, not a gint *.
You probably want to use:
 
  gint value;
  g_object_get (G_OBJECT (udpsrc), "port", &value, NULL);

Wim

> 
-- 
Wim Taymans <wim at fluendo.com>





More information about the gstreamer-devel mailing list