Commit 57faaf39 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udp: remove useless loop in the block callback

In case of spurious wake-up, the function will return NULL. This is OK.
parent e7c7f475
......@@ -240,7 +240,7 @@ static block_t *BlockUDP( access_t *p_access )
return NULL;
vlc_fifo_Lock(sys->fifo);
while (vlc_fifo_IsEmpty(sys->fifo) && sys->running)
if (vlc_fifo_IsEmpty(sys->fifo) && sys->running)
vlc_fifo_Wait(sys->fifo);
block = vlc_fifo_DequeueUnlocked(sys->fifo);
......
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