[Bug 656396] why gst_decode_bin_get_type static?

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Aug 12 06:59:31 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=656396
  GStreamer | gst-plugins-base | git

--- Comment #3 from Levente Farkas <lfarkas at lfarkas.org> 2011-08-12 13:59:27 UTC ---
what does the "public API / public classes/objects" means?
this means final elements's are not public? eg gst_identity_get_type?

the problem (in gstreamer-java):
there're wrapper class for some gstreamer elements which add easier usage of
native gstreamer elements. there're 2 ways for elements to be created:
1. when we (from java) create the element. in this case we know what is it.
2. when gstreamer itself create element eg: auto... or rtspsrc which create an
inner rtpbin. when we got this element in java (eg: trough element-added
signal) we'd like to cast it into the java wrapper class.

until now in gstreamer-java there is a global prefilled map which map GType to
java wrapper classs. during startap we initialize this map eg:
gst_bus_get_type(), Bus.class
gst_bin_get_type(), Bin.class
etc.
so when we get an element we can find it's wrapper class.

so my question what can i do in case of such elements (like gstrtpbin) where
the *_get_type function is not exported (gst_rtp_bin_get_type)?
of course i wouldn't like to create all elements just to get it's type. or
isn't there any other way?

thanks

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list