HACK: udp: allow circular receive buffer with w32threads
This commit is contained in:
parent
eb56afba1f
commit
19a2b2fa9f
|
@ -1118,6 +1118,7 @@ static int udp_close(URLContext *h)
|
||||||
if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
|
if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
|
||||||
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,
|
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,
|
||||||
(struct sockaddr *)&s->local_addr_storage, h);
|
(struct sockaddr *)&s->local_addr_storage, h);
|
||||||
|
closesocket(s->udp_fd);
|
||||||
#if HAVE_PTHREAD_CANCEL
|
#if HAVE_PTHREAD_CANCEL
|
||||||
if (s->thread_started) {
|
if (s->thread_started) {
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -1140,7 +1141,6 @@ static int udp_close(URLContext *h)
|
||||||
pthread_cond_destroy(&s->cond);
|
pthread_cond_destroy(&s->cond);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
closesocket(s->udp_fd);
|
|
||||||
av_fifo_freep2(&s->fifo);
|
av_fifo_freep2(&s->fifo);
|
||||||
ff_ip_reset_filters(&s->filters);
|
ff_ip_reset_filters(&s->filters);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue