mirror of
https://github.com/videolan/vlc.git
synced 2024-12-05 07:46:32 +08:00
udp: fix potential deadlock at exit
This commit is contained in:
parent
8c3b357eea
commit
613ea43a83
@ -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 )
|
static block_t *BlockUDP( access_t *p_access )
|
||||||
{
|
{
|
||||||
access_sys_t *sys = p_access->p_sys;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user