rtspconnection: make hostname lookup more thread-safe

Don't write IP number string to return into a static
array which is shared amongst all threads (note: of
course a copy is returned).

https://bugzilla.gnome.org/show_bug.cgi?id=666711
This commit is contained in:
Tim-Philipp Müller 2012-01-07 20:12:17 +00:00
parent 1031fedaf0
commit 9f042ae224

View file

@ -458,7 +458,7 @@ wrong_family:
static gchar *
do_resolve (const gchar * host)
{
static gchar ip[INET6_ADDRSTRLEN];
gchar ip[INET6_ADDRSTRLEN];
struct addrinfo *aires, hints;
struct addrinfo *ai;
gint aierr;