[Bug 656396] why gst_decode_bin_get_type static?

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Aug 12 07:09:18 PDT 2011


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

--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2011-08-12 14:09:17 UTC ---
> what does the "public API / public classes/objects" means?

It means API for which we install header files in $prefix/include/.

> this means final elements are not public? eg gst_identity_get_type?

Correct.


> 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?

The gstreamer-mm C++ bindings do something like that, you could have a look at
what they do (I suspect they just hard-code the API or introspect at build-time
and generate wrappers from that).

Also, bugzilla is not a support forum, it's for bugs. Please use the mailing
list for questions.

-- 
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