1
0
Fork 0

HACK: udp: allow circular receive buffer with w32threads

This commit is contained in:
Hendrik Leppkes 2014-05-12 08:38:33 +02:00
parent eb56afba1f
commit 19a2b2fa9f
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 1 additions and 1 deletions

View File

@ -1118,6 +1118,7 @@ static int udp_close(URLContext *h)
if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,
(struct sockaddr *)&s->local_addr_storage, h);
closesocket(s->udp_fd);
#if HAVE_PTHREAD_CANCEL
if (s->thread_started) {
int ret;
@ -1140,7 +1141,6 @@ static int udp_close(URLContext *h)
pthread_cond_destroy(&s->cond);
}
#endif
closesocket(s->udp_fd);
av_fifo_freep2(&s->fifo);
ff_ip_reset_filters(&s->filters);
return 0;