changeset 24968:ca0c9cc50e35

Use STUN for the nice transmitter as well.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Tue, 25 Nov 2008 02:58:55 +0000
parents bee5ab815291
children a62d10cce27a cb4337d6c803
files libpurple/media.c
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Mon Nov 24 10:43:38 2008 +0000
+++ b/libpurple/media.c	Tue Nov 25 02:58:55 2008 +0000
@@ -1175,22 +1175,17 @@
 		gchar *stun_ip = NULL;
 		FsStream *fsstream = NULL;
 
-		if (!strcmp(transmitter, "rawudp") &&
-				(stun_ip = purple_media_get_stun_pref_ip())) {
-			GParameter *param = g_new0(GParameter, num_params+2);
+		if (stun_ip = purple_media_get_stun_pref_ip()) {
+			GParameter *param = g_new0(GParameter, num_params+1);
 			memcpy(param, params, sizeof(GParameter) * num_params);
 
 			param[num_params].name = "stun-ip";
 			g_value_init(&param[num_params].value, G_TYPE_STRING);
 			g_value_take_string(&param[num_params].value, stun_ip);
 
-			param[num_params+1].name = "stun-timeout";
-			g_value_init(&param[num_params+1].value, G_TYPE_UINT);
-			g_value_set_uint(&param[num_params+1].value, 5);
-
 			fsstream = fs_session_new_stream(session->session,
 					participant, type_direction,
-					transmitter, num_params+2, param, &err);
+					transmitter, num_params+1, param, &err);
 			g_free(param);
 			g_free(stun_ip);
 		} else {