[gst-devel] Setting queu-size in playbin

Ronald S. Bultje rbultje at ronald.bitfreak.net
Tue Jun 14 14:39:35 CEST 2005


On Tue, 2005-06-14 at 22: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);
>  (siobhan:111): GLib-GObject-WARNING **: g_object_set_valist: object
> class `GstPlayBin' has no property named `\u0002'

The type is a guint64. Your number here is a 32-bit integer. The NULL
will take the other 32-bit (and since it's apparently x86 and thus
little endian, it'll be 0x00 x 4 for the higher 32 bits, so the 64-bit
number will actually work fine). the next 4 (random) bytes will be used
as next property, leading to the warning. Practically, it all works fine
because the property was set as expected, but it's obviously not right.

The correct way is to cast the number to a guint64:

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

Cheers,

Ronald

-- 
Ronald S. Bultje <rbultje at ronald.bitfreak.net>





More information about the gstreamer-devel mailing list