[Bug 642967] [performance] Create variants of _ref/_unref for buffers

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Feb 22 09:12:21 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=642967
  GStreamer | gstreamer (core) | git

Wim Taymans <wim.taymans> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wim.taymans at gmail.com

--- Comment #1 from Wim Taymans <wim.taymans at gmail.com> 2011-02-22 17:12:15 UTC ---
The type check is of course a good thing to have to catch programmer errors.
How about having the type check be something like:

 gtype == GST_TYPE_BUFFER || g_type_check_instance_is_a (miniobjecttype)

Doing a quick check for the most common type and fall back to the slower check.
The slow check would only happen for buffer subclasses.

you would indeed need a non-checking miniobject_unref and do the check in the
gst_buffer_unref() method before you call the non-checking one, or something.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list