Commit 3ca68a65 authored by Rémi Denis-Courmont's avatar 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.
parent efc27f36
...@@ -550,7 +550,7 @@ block_fifo_t *block_FifoNew( void ) ...@@ -550,7 +550,7 @@ block_fifo_t *block_FifoNew( void )
*/ */
void block_FifoRelease( block_fifo_t *p_fifo ) 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_room );
vlc_cond_destroy( &p_fifo->wait ); vlc_cond_destroy( &p_fifo->wait );
vlc_mutex_destroy( &p_fifo->lock ); vlc_mutex_destroy( &p_fifo->lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment