[gst-devel] questions regarding interface support in GStreamer

·« ÕÅ zhangf1979 at hotmail.com
Mon Jul 10 08:41:19 CEST 2006


Hi all,
I am currrently studying interface support in GStreamer. It seems GStreamer
borrows this from GLib.
After reading the application guide and plugin guide, I can only see how to
define and register an interface(Using g_type_add_interface_static).
But I can't find an example about how to query an interface and use it. I
looked into GLib documentation and find two APIs:
- gpointer    g_type_interface_peek(
            gpointer instance_class,
            GType iface_type);
- G_TYPE_INSTANCE_GET_INTERFACE()
I think they are used to query the registered interfaces, am I right?
I am new to GLib and GStreamer, so if you could kindly give me a whole
picture of how to register, query and use interfaces, it will be very 
helpful!
Thanks in advance!

Fan






More information about the gstreamer-devel mailing list