[gstreamer-bugs] [Bug 539055] Gst*Pad* new functions don't initialze the object's instance with the construction properties.
bugzilla-daemon at bugzilla.gnome.org
Thu Jun 19 13:29:48 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:
GStreamer | gstreamer (core) | Ver: HEAD CVS
José Alburquerque changed:
What |Removed |Added
------- Comment #3 from José Alburquerque 2008-06-19 20:29 UTC -------
It's not an error per se, it's just that in our C++ wrapping library the
scripts we use to bind the C code in specific cases (mostly where the wrapping
of GObject classes are concerned) generate automatic constructors that try to
create the underlying GObjects by getting the GType's GTypeClass structure with
g_type_class_ref(), creating a GParameter array of the construction properties
(they try to find the properties with g_object_class_find_property() first to
make sure that they exist) and then creating the GObject with g_object_newv().
When the properties are not found, for example when creating a Gst::Pad with a
name/direction constructor (which in your API would probably be done with a
call to gst_pad_new()) we get a warning as follows:
(lt-test-pad:19579): glibmm-WARNING **:
Glib::ConstructParams::ConstructParams(): object class "gtkmm__GstPad" has no
property named "dir"
because the constructor is not able to find the construction property "dir"
(the second parameter of the constructor).
Are we going about this the wrong way? Is using g_object_newv() in this case
inappropriate and would it be best to somehow directly use the
gst_*_pad*_new*() functions? I'm trying to get a sense of what's possible,
correct and appropriate in providing C++ bindings of your fine API. 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=539055.
More information about the Gstreamer-bugs