pidgin.vv: 8b14f9cc: Use STUN for the nice transmitter as wel...

maiku at soc.pidgin.im maiku at soc.pidgin.im
Mon Nov 24 22:05:24 EST 2008


-----------------------------------------------------------------
Revision: 8b14f9ccca52482ea771f52730b3b9f59bac6b06
Ancestor: 5bf87e309f2fee61842cccf4992de4866349570c
Author: maiku at soc.pidgin.im
Date: 2008-11-25T02:58:55
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/8b14f9ccca52482ea771f52730b3b9f59bac6b06

Modified files:
        libpurple/media.c

ChangeLog: 

Use STUN for the nice transmitter as well.

-------------- next part --------------
============================================================
--- libpurple/media.c	37eb73d5c02caaf9e4f00d5be317bdcae2bb6af9
+++ libpurple/media.c	52e4aadf6c0e94b4d673a9045958a6c38e1e4f85
@@ -1175,22 +1175,17 @@ purple_media_add_stream_internal(PurpleM
 		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 {


More information about the Commits mailing list