After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167283 - GStreamer creates broken objects
GStreamer creates broken objects
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other other
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-02-13 17:22 UTC by Benjamin Otte (Company)
Modified: 2005-06-30 15:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (2.85 KB, patch)
2005-02-13 17:31 UTC, Benjamin Otte (Company)
none Details | Review

Description Benjamin Otte (Company) 2005-02-13 17:22:22 UTC
Run the following code with MyElement being a subclass of GstElement):

element = g_object_new (MY_TYPE_ELEMENT);
gst_bin_add (some_bin, element);


You'll get the following errors:

(process:29426): GStreamer-CRITICAL **: file 
gstobject.c: line 589 (gst_object_check_uniqueness): assertion `name != NULL' failed

(process:29426): GStreamer-WARNING **: Name (null) is not unique in bin
some_bin, not adding


I think a default name should be given to the object upon creation, but since
I'm not sure if that'd break something in 0.8, I'm filing it here for discussion.
Comment 1 Benjamin Otte (Company) 2005-02-13 17:31:29 UTC
Created attachment 37433 [details] [review]
proposed patch
Comment 2 Ronald Bultje 2005-02-16 09:42:30 UTC
Feel free to apply, should be fine. (I have to say that I personally dislike the
_init() function renamen, but ohwell...)
Comment 3 Benjamin Otte (Company) 2005-02-19 13:06:07 UTC
applied.