Adding plugin arguments in code.
Tim Müller
tim at centricular.com
Tue Dec 10 04:35:46 PST 2013
On Mon, 2013-12-09 at 17:03 -0500, Chuck Crisler wrote:
> After you have created the element, call
> g_object_set(G_OBJECT(your_element), "max-size_time", 0, NULL);
In this particular case:
g_object_set (queue, "max-size-time", (guint64) 0, NULL);
You need to cast to guint64, because the element expects a 64-bit
integer. The C compiler doesn't know that it needs to pass a 64-bit
integer here (vararg function), so might just pass a normal int and then
things might go wrong on some platforms/architectures/environments.
Note that in code you can also use gst_parse_launch() and friends to
create pipelines and bins.
Regards
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list