comparison libpurple/protocols/jabber/jabber.c @ 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 356a8d472395
children 4f6273c899b9
comparison
equal deleted inserted replaced
30535:c954ee775713 30536:8737d2e4b297
3252 3252
3253 jb = jabber_buddy_find(js, who, FALSE); 3253 jb = jabber_buddy_find(js, who, FALSE);
3254 jbr = jabber_buddy_find_resource(jb, resource); 3254 jbr = jabber_buddy_find_resource(jb, resource);
3255 g_free(resource); 3255 g_free(resource);
3256 3256
3257 /* if we are on a Google Talk connection and the remote supports 3257 if (type & PURPLE_MEDIA_AUDIO &&
3258 Google Jingle, we will go with that */ 3258 !jabber_resource_has_capability(jbr,
3259 if (((js->googletalk && js->google_relay_token) || 3259 JINGLE_APP_RTP_SUPPORT_AUDIO) &&
3260 !jabber_resource_has_capability(jbr, JINGLE_APP_RTP_SUPPORT_AUDIO)) 3260 jabber_resource_has_capability(jbr, NS_GOOGLE_VOICE))
3261 && (((type & PURPLE_MEDIA_AUDIO) &&
3262 jabber_resource_has_capability(jbr, NS_GOOGLE_VOICE))
3263 || ((type & PURPLE_MEDIA_VIDEO) &&
3264 jabber_resource_has_capability(jbr, NS_GOOGLE_VIDEO))))
3265 return jabber_google_session_initiate(js, who, type); 3261 return jabber_google_session_initiate(js, who, type);
3266 else 3262 else
3267 return jingle_rtp_initiate_media(js, who, type); 3263 return jingle_rtp_initiate_media(js, who, type);
3268 } 3264 }
3269 3265