[vlc-commits] block: simplify block_FifoRelease
Rémi Denis-Courmont
git at videolan.org
Tue Mar 17 19:51:53 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 17 19:16:44 2015 +0200| [3ca68a656282c5dcb4c2ebbb9ec9e8ec6069576f] | committer: Rémi Denis-Courmont
block: simplify block_FifoRelease
Since the FIFO is being destroyed, there is no need to lock and to
update the FIFO internal state.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ca68a656282c5dcb4c2ebbb9ec9e8ec6069576f
---
src/misc/block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/block.c b/src/misc/block.c
index a5c4b40..26a2af6 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -550,7 +550,7 @@ block_fifo_t *block_FifoNew( void )
*/
void block_FifoRelease( block_fifo_t *p_fifo )
{
- block_FifoEmpty( p_fifo );
+ block_ChainRelease( p_fifo->p_first );
vlc_cond_destroy( &p_fifo->wait_room );
vlc_cond_destroy( &p_fifo->wait );
vlc_mutex_destroy( &p_fifo->lock );
More information about the vlc-commits
mailing list