[gst-devel] GstIntefaces and casting...

Benjamin Otte in7y118 at public.uni-hamburg.de
Tue Nov 18 04:07:06 CET 2003

On Tue, 18 Nov 2003, Ronald Bultje wrote:

> On Mon, 2003-11-17 at 23:29, Brett Kosinski wrote:
> > Out of curiosity, are there any ideas about the types of objects expected
> > to be passed into gst_interface_cast() and gst_interface_check()?  ie, are
> > there any restrictions?  eg, they'll always be GstObject or GstInterface
> > descendents, etc.  Or is it really just a free-for-all?
> Always a GstElement. However, if you don't pass a GstElement, it will
> check this and skip the supported() step, so it will behave just like a
> normal "class-wide" cast. I'm not sure if this is the right behaviour,
> though, so just stick to GstElements for now.
It should be what the GstInterface requires. If there is no
g_interface_add_prerequisite, it should be a GObject. If it requires a
GstElement, use that :)


More information about the gstreamer-devel mailing list