Commit 613ea43a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udp: fix potential deadlock at exit

parent 8c3b357e
......@@ -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