memory: add gst_memory_init()
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 5 Jul 2012 15:11:01 +0000 (17:11 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 5 Jul 2012 15:11:01 +0000 (17:11 +0200)
commit50cf7f6a08250eebf666deb8d1bb7f73a907f044
tree7bdafb31e16b01fda1e17326d27879f9ffd6d7c3
parente30930af4f85cb94630991b1c100b6328cedd66d
memory: add gst_memory_init()

Add a method that memory implementations can call to initialize the standard
GstMemory structure.
Move the parent handling in the _free handler.
Rearrange some internal function parameters so that the order is consistent.
Add more memory examples
gst/gstmemory.c
gst/gstmemory.h
tests/examples/memory/Makefile.am
tests/examples/memory/memory_test.c
tests/examples/memory/my-memory.c [new file with mode: 0644]
tests/examples/memory/my-memory.h [new file with mode: 0644]