1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 24919 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Martin Storsjö 2010-08-25 13:31:33 +00:00
parent 7ad526d288
commit 5a8693ef59

View File

@ -94,10 +94,10 @@ static void resolve_destination(char *dest_addr, int size, char *type,
memset(&hints, 0, sizeof(hints));
if (getaddrinfo(dest_addr, NULL, &hints, &ai))
return;
getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
NULL, 0, NI_NUMERICHOST);
if (ai->ai_family == AF_INET6)
av_strlcpy(type, "IP6", type_size);
getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size,
NULL, 0, NI_NUMERICHOST);
if (ai->ai_family == AF_INET6)
av_strlcpy(type, "IP6", type_size);
freeaddrinfo(ai);
}
#else