Mercurial > pidgin
comparison libpurple/protocols/jabber/jabber.c @ 30511:4b7d599b5a00
merge of '745f55ef98eaf96a452eb54bb2c46f21845f9996'
and 'b04f4322926ab2a4467fb2b9c11d9961e66d1a9c'
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Mon, 09 Nov 2009 19:27:45 +0000 |
parents | 0712ce23901e d760797a3528 |
children | 0b5520bf1fe3 |
comparison
equal
deleted
inserted
replaced
30509:0712ce23901e | 30511:4b7d599b5a00 |
---|---|
3026 jbr = jabber_buddy_find_resource(jb, resource); | 3026 jbr = jabber_buddy_find_resource(jb, resource); |
3027 g_free(resource); | 3027 g_free(resource); |
3028 | 3028 |
3029 /* if we are on a Google Talk connection and the remote supports | 3029 /* if we are on a Google Talk connection and the remote supports |
3030 Google Jingle, we will go with that */ | 3030 Google Jingle, we will go with that */ |
3031 if ((js->googletalk || | 3031 if (((js->googletalk && js->google_relay_token) || |
3032 !jabber_resource_has_capability(jbr, JINGLE_APP_RTP_SUPPORT_AUDIO)) | 3032 !jabber_resource_has_capability(jbr, JINGLE_APP_RTP_SUPPORT_AUDIO)) |
3033 && type & PURPLE_MEDIA_AUDIO && jabber_resource_has_capability(jbr, | 3033 && (((type & PURPLE_MEDIA_AUDIO) && |
3034 GOOGLE_VOICE_CAP)) | 3034 jabber_resource_has_capability(jbr, GOOGLE_VOICE_CAP)) |
3035 || ((type & PURPLE_MEDIA_VIDEO) && | |
3036 jabber_resource_has_capability(jbr, GOOGLE_VIDEO_CAP)))) | |
3035 return jabber_google_session_initiate(js, who, type); | 3037 return jabber_google_session_initiate(js, who, type); |
3036 else | 3038 else |
3037 return jingle_rtp_initiate_media(js, who, type); | 3039 return jingle_rtp_initiate_media(js, who, type); |
3038 } | 3040 } |
3039 | 3041 |