changeset 30486:54461ce5f7e0

jabber: priority is called preference in Google mode
author Marcus Lundblad <ml@update.uu.se>
date Sat, 04 Sep 2010 17:47:46 +0000
parents e97788414900
children a2d5bafdbea9 75045bed7704
files libpurple/protocols/jabber/google/google_session.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google/google_session.c	Sat Sep 04 15:47:59 2010 +0000
+++ b/libpurple/protocols/jabber/google/google_session.c	Sat Sep 04 17:47:46 2010 +0000
@@ -543,12 +543,12 @@
 		const gchar *protocol = xmlnode_get_attrib(cand, "protocol");
 		const gchar *address = xmlnode_get_attrib(cand, "address");
 		const gchar *port = xmlnode_get_attrib(cand, "port");
-		const gchar *priority = xmlnode_get_attrib(cand, "priority");
+		const gchar *preference = xmlnode_get_attrib(cand, "preference");
 		guint component_id;
 
 		if (cname && type && address && port) {
 			PurpleMediaCandidateType candidate_type;
-			guint prio = priority ? atof(priority) * 1000 : 0;
+			guint prio = preference ? atof(preference) * 1000 : 0;
 			
 			g_snprintf(n, sizeof(n), "S%d", name++);