[0.11] gstreamer: memory: make the allocator refcounted

Wim Taymans wtay at kemper.freedesktop.org
Mon Jan 30 04:24:33 PST 2012


Module: gstreamer
Branch: 0.11
Commit: af2fc026fc521df3cc3d299598c339a721934d80
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=af2fc026fc521df3cc3d299598c339a721934d80

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jan 30 13:02:13 2012 +0100

memory: make the allocator refcounted

Add refcounting to the GstAllocator object.
Remove const from functions because the allocator is refcounted now.
Rename the vmethods for consistency
Expose the constructor for GstAllocator and add a destroy notify for the
user_data. This should make it possible to create allocators that are not
registered and shared globally along with the possibility to destroy them
properly.
Update defs with new symbols.

---

 gst/gstbuffer.c                  |    3 +-
 gst/gstbuffer.h                  |    2 +-
 gst/gstmemory.c                  |  168 ++++++++++++++++++++++++++++----------
 gst/gstmemory.h                  |   56 +++++++------
 libs/gst/base/gstbasesrc.c       |   11 ++-
 libs/gst/base/gstbasetransform.c |   11 ++-
 win32/common/libgstreamer.def    |    3 +
 7 files changed, 175 insertions(+), 79 deletions(-)

Diff:   http://cgit.freedesktop.org/gstreamer/gstreamer/diff/?id=af2fc026fc521df3cc3d299598c339a721934d80


More information about the gstreamer-commits mailing list