On Tue, 26 Jun 2012, Jordi Ortiz wrote:
--- libavformat/tcp.c | 2 ++ 1 file changed, 2 insertions(+)diff --git a/libavformat/tcp.c b/libavformat/tcp.c index e77e4c5..d2bfb48 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -65,6 +65,8 @@ static int tcp_open(URLContext *h, const char *uri, int flags) hints.ai_socktype = SOCK_STREAM; snprintf(portstr, sizeof(portstr), "%d", port); ret = getaddrinfo(hostname, portstr, &hints, &ai); + if (listen_socket) + hints.ai_flags |= AI_PASSIVE; if (ret) {
You set the flag _after_ calling getaddrinfo? // Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
