mirror of https://git.ffmpeg.org/ffmpeg.git
udp: Clarify the comment about binding the multicast address
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
113d3e106d
commit
1b89bcdd7f
|
@ -380,7 +380,9 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if multicast, try the multicast address bind first */
|
/* If multicast, try binding the multicast address first, to avoid
|
||||||
|
* receiving UDP packets from other sources aimed at the same UDP
|
||||||
|
* port. This fails on windows. */
|
||||||
if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) {
|
if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) {
|
||||||
bind_ret = bind(udp_fd,(struct sockaddr *)&s->dest_addr, len);
|
bind_ret = bind(udp_fd,(struct sockaddr *)&s->dest_addr, len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue