[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-bugs
Subject:    [gstreamer-bugs] [Bug 539108] gst_ghost_pad_new() does more than
From:       "GStreamer (bugzilla.gnome.org)" <bugzilla-daemon () bugzilla ! gnome ! org>
Date:       2008-06-29 9:05:26
Message-ID: 20080629090526.1892723F50C () label ! gnome ! org
[Download RAW message or body]

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

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #11 from Murray Cumming  2008-06-29 09:05 UTC -------
(In reply to comment #9)
> Murray, just curious but how are you handling parameter checking in the C++
> bindings? Most of the foo_type_new() functions check the parameters and return
> NULL or something when something is wrong... if you just call g_object_new()
> you could create broken object instances as g_object_new() can't fail.

We generally don't and that's generally not a problem because most _new()
functions don't do much checking. And they shouldn't need to, because libraries
should expect that people will use just g_object_new(). This should really be
avoided - it's far better to always create an instance and have an extra
is_valid() function if necessary.

But if we use the new _construct() functions then hopefully we can still be
told about failures and return a null Glib::RefPtr from our create() functions.


-- 
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=539108.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gstreamer-bugs mailing list
gstreamer-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic