aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/teeproto.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-01-26 22:13:50 +0100
committerMarton Balint <cus@passwd.hu>2020-02-02 19:04:42 +0100
commit53aa76686e7ff4f1f6625502503d7923cec8c10e (patch)
tree43fd5c63b3574aa438625828c9145097615a36ca /libavformat/teeproto.c
parentc2b6493bf7ccbd34c2b28c53093fa6902673a8cd (diff)
downloadffmpeg-53aa76686e7ff4f1f6625502503d7923cec8c10e.tar.gz
avformat/udp: cancel pending IO on win32 manually
recvfrom() is not a cancellation point in pthreads-win32, see https://sourceware.org/pthreads-win32/manual/pthread_cancel.html In order to be able to cancel the reader thread on Win32 properly we first shutdown the socket then call CancelIoEx to abort pending IO. Subsequent recvfrom() calls will fail with WSAESHUTDOWN causing the thread to exit. Fixes ticket #5717. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/teeproto.c')
0 files changed, 0 insertions, 0 deletions