changeset 30536:8737d2e4b297

restore the Jingle method selection to prefer standard over Google-specific
author Marcus Lundblad <ml@update.uu.se>
date Mon, 06 Sep 2010 19:28:13 +0000
parents c954ee775713
children 2a7d721bdfa6
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Sun Sep 05 08:54:43 2010 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Mon Sep 06 19:28:13 2010 +0000
@@ -3254,14 +3254,10 @@
 		jbr = jabber_buddy_find_resource(jb, resource);
 		g_free(resource);
 
-		/* if we are on a Google Talk connection and the remote supports
-		 Google Jingle, we will go with that */
-		if (((js->googletalk && js->google_relay_token) ||
-		     !jabber_resource_has_capability(jbr, JINGLE_APP_RTP_SUPPORT_AUDIO))
-		    && (((type & PURPLE_MEDIA_AUDIO) && 
-		    	jabber_resource_has_capability(jbr, NS_GOOGLE_VOICE))
-		        || ((type & PURPLE_MEDIA_VIDEO) &&
-		    		jabber_resource_has_capability(jbr, NS_GOOGLE_VIDEO))))
+		if (type & PURPLE_MEDIA_AUDIO &&
+			!jabber_resource_has_capability(jbr,
+			JINGLE_APP_RTP_SUPPORT_AUDIO) &&
+			jabber_resource_has_capability(jbr, NS_GOOGLE_VOICE))
 			return jabber_google_session_initiate(js, who, type);
 		else
 			return jingle_rtp_initiate_media(js, who, type);