diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-23 01:17:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-23 01:42:42 +0100 |
commit | bc900501e0e2002e40d2d0c87b5a98b913b2d1a2 (patch) | |
tree | c415be42d4c32e00288a155343fef633a43edf7e /libavformat/pva.c | |
parent | 3dcbafc777513621e423c2f23b1725559230383d (diff) | |
download | ffmpeg-bc900501e0e2002e40d2d0c87b5a98b913b2d1a2.tar.gz |
udp: Replace double select() by select+mutex+cond.
When no data was available both the buffer thread as well as
the main thread would block in select(), when data becomes
available both should move forward and as data is read in the
buffer thread the main thread would block in select() later
the read data was put in the fifo but the main thread still
would be blocked in select() until either the timeout or
another packet would come in.
This is solved in this commit by using a mutex and a condition
variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/pva.c')
0 files changed, 0 insertions, 0 deletions