udp: use pthread_cancel instead of a shared flag.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 15 Mar 2012 12:03:38 +0000 (13:03 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 22 Mar 2012 16:36:23 +0000 (17:36 +0100)
commitaa1297882fc95b3f301d39f3a74730ef72f44b70
treee4f688e689d0f8e78c0919a7ff0da1d1077f2d88
parent4246032216181c778f7ddf7f2e062cada2ef346d
udp: use pthread_cancel instead of a shared flag.

It allows to exit the thread immediately instead of waiting
for select to timeout (one second in the current code).
libavformat/udp.c