[vlc-commits] block: deinline block_Release()

Rémi Denis-Courmont git at videolan.org
Sun Jul 8 19:48:36 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul  8 20:46:09 2018 +0300| [b019e2ddeb5549e49192fc2080f5e2bd044aa7c1] | committer: Rémi Denis-Courmont

block: deinline block_Release()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b019e2ddeb5549e49192fc2080f5e2bd044aa7c1
---

 include/vlc_block.h | 5 +----
 src/libvlccore.sym  | 1 +
 src/misc/block.c    | 5 +++++
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/include/vlc_block.h b/include/vlc_block.h
index dd1e32e3cb..15829d69dc 100644
--- a/include/vlc_block.h
+++ b/include/vlc_block.h
@@ -199,10 +199,7 @@ VLC_API block_t *block_Realloc(block_t *, ssize_t pre, size_t body) VLC_USED;
  *
  * @param block block to release (cannot be NULL)
  */
-static inline void block_Release(block_t *block)
-{
-    block->cbs->free(block);
-}
+VLC_API void block_Release(block_t *block);
 
 static inline void block_CopyProperties( block_t *dst, block_t *src )
 {
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 31e4ece6e0..4c0145d98b 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -42,6 +42,7 @@ block_Init
 block_mmap_Alloc
 block_shm_Alloc
 block_Realloc
+block_Release
 block_TryRealloc
 config_AddIntf
 config_ChainCreate
diff --git a/src/misc/block.c b/src/misc/block.c
index 9bb13fea19..76e4c4f725 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -154,6 +154,11 @@ block_t *block_Alloc (size_t size)
     return b;
 }
 
+void block_Release(block_t *block)
+{
+    block->cbs->free(block);
+}
+
 block_t *block_TryRealloc (block_t *p_block, ssize_t i_prebody, size_t i_body)
 {
     block_Check( p_block );



More information about the vlc-commits mailing list