[vlc-commits] vlc_block_helper: use block_ChainRelease for chain release

Francois Cartegnie git at videolan.org
Wed Oct 26 19:07:02 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 26 15:56:26 2016 +0200| [f740b346bef8bc219f993519a5244a42089c9089] | committer: Francois Cartegnie

vlc_block_helper: use block_ChainRelease for chain release

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

 include/vlc_block_helper.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/include/vlc_block_helper.h b/include/vlc_block_helper.h
index 444286f..331e268 100644
--- a/include/vlc_block_helper.h
+++ b/include/vlc_block_helper.h
@@ -45,13 +45,7 @@ static inline void block_BytestreamInit( block_bytestream_t *p_bytestream )
 
 static inline void block_BytestreamRelease( block_bytestream_t *p_bytestream )
 {
-    for( block_t *block = p_bytestream->p_chain; block != NULL; )
-    {
-        block_t *p_next = block->p_next;
-
-        block_Release( block );
-        block = p_next;
-    }
+    block_ChainRelease( p_bytestream->p_chain );
 }
 
 /**



More information about the vlc-commits mailing list