[gst-devel] Setting queu-size in playbin

Tim Müller t.i.m at zen.co.uk
Tue Jun 14 14:12:58 CEST 2005


On Tuesday 14 June 2005 21:34, Rios, Ariel wrote:

> What is the correct way for setting the queu-size property in a playbin.
> I am doing
>
>   g_object_set (play, "queue-size", 2 * 1024 * 1024, NULL);
>
> My application works as expected although I get the following warning:
>
>  (siobhan:111): GLib-GObject-WARNING **: g_object_set_valist: object
> class `GstPlayBin' has no property named `\u0002'

Try

  g_object_set (play, "queue-size", (guint64) 2*1024*1024, NULL);

it's a vararg call. The compiler can't know that the queue-size property 
requires a 64 bit integer, it will default to a normal int (which is probably 
32 bit on your system). The g_object_set() vararg collector, however, will 
still pull 64 bit from the stack, so all the following args including the 
terminating NULL get messed up.

Cheers
 -Tim




More information about the gstreamer-devel mailing list