[gstreamer-bugs] [Bug 539055] New: Gst*Pad* new functions don't initialze the object's instance with the construction properties.

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jun 18 18:10:41 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=539055

  GStreamer | gstreamer (core) | Ver: HEAD CVS
           Summary: Gst*Pad* new functions don't initialze the object's
                    instance with the construction properties.
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: jaalburqu at svn.gnome.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.21/2.22
   GNOME milestone: Unspecified


I was just reading the GObject docs and found the following (see
http://library.gnome.org/devel/gobject/2.17/chapter-gobject.html#gobject-instantiation):

Object instantiation

The g_object_new family of functions can be used to instantiate any GType which
inherits from the GObject base type. All these functions make sure the class
and instance structures have been correctly initialized by glib's type system
and then invoke at one point or another the constructor class method which is
used to:

    * Allocate and clear memory through g_type_create_instance,
    * Initialize the object' instance with the construction properties.

I'm still working on C++ bindings (gstreamermm) and am encountering problems
with some of the *_new* functions, particularly the ones pertaining to the
Gst*Pad* objects because the GObjects are not initialized with the construction
properties (for example "name" and "direction" properties for gst_pad_new(),
etc.).  Is there a reason the GObjects are not initialized with the
construction properties?  Would it be difficult to fix?  Is it contemplated to
be fixed?  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 mailing list