Commit d6cf63b1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

udp: fix potential deadlock at exit

(cherry picked from commit 613ea43a83ed745a9dd58ebce89607b98dbe894c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 85b79c31
......@@ -232,8 +232,14 @@ static int Control( access_t *p_access, int i_query, va_list args )
static block_t *BlockUDP( access_t *p_access )
{
access_sys_t *sys = p_access->p_sys;
block_t *block;
return block_FifoGet( sys->fifo );
if( p_access->info.b_eof )
return NULL;
block = block_FifoGet( sys->fifo );
p_access->info.b_eof = block == NULL;
return block;
}
/*****************************************************************************
......
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