avformat/udp: redesign threaded udp tx code
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 May 2016 22:06:39 +0000 (00:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 May 2016 23:39:23 +0000 (01:39 +0200)
commit9b7a8bddac52bd05dddb28afd4dff92739946d3b
treeff4207fac59503016f16e7abce75802d8448b5f1
parent413c842a697866b62ea5dbb5e5fa54ae990d503e
avformat/udp: redesign threaded udp tx code

This fixes partially completed send()
Avoids holding the mutex during send()
fixes race conditions in error handling
removes copied non thread specific blocking code
Fixes deadlocks on closure
Fixes data loss on closure

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/udp.c