[gstreamer-bugs] [Bug 539805] gst_bin_new() does something other than call g_object_new()

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Jun 23 18:13:58 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=539805

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #2 from José Alburquerque  2008-06-24 01:13 UTC -------
Sorry, what I'm trying to say is that I think gst_bin_new() should use
g_object_new() to create a GstBin because it makes it possible for the c++
bindings to create these bins by using standard glue code in c++ constructors
using g_object_new().  I hope this is not a superfluous bug and that I'm not
mistaken in this report, but the "Exporting a C API" chapter of the GObject
manual ( http://library.gnome.org/devel/gobject/2.17/ch01s02.html) explains
that the purpose of the GObject functionality is to allow automatic glue for
bindings easier:

"The greatest advantage of the solution implemented by GType is that the glue
code sitting at the runtime domain boundaries is written once: the figure below
states this more clearly."

"Although that goal was arguably laudable, its pursuit has had a major
influence on the whole GType/GObject library. C programmers are likely to be
puzzled at the complexity of the features exposed in the following chapters if
they forget that the GType/GObject library was not only designed to offer
OO-like features to C programmers but also transparent cross-language
interoperability."

Is there something I'm misunderstanding?  If it's possible to do the same thing
using a few extra function calls this would be nice for the c++ bindings (I'm
pretty sure).  Thanks.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=539805.




More information about the Gstreamer-bugs mailing list