pidgin.vv: 407f153f: End google call if stream creation fails...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Mon Jan 5 19:25:31 EST 2009
-----------------------------------------------------------------
Revision: 407f153f37add2d23940ed776d09ec9a58d2ce91
Ancestor: 1fba088a3916648b1ce9e142426deac3d738b886
Author: maiku at soc.pidgin.im
Date: 2009-01-06T00:21:09
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/407f153f37add2d23940ed776d09ec9a58d2ce91
Modified files:
libpurple/protocols/jabber/google.c
ChangeLog:
End google call if stream creation fails.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google.c ae15ea8ab72a3e9b9e8f3d063f32a90584f04f87
+++ libpurple/protocols/jabber/google.c ac320ae4dc80a65dd504361af435b860108a9db2
@@ -225,8 +225,13 @@ google_session_handle_initiate(JabberStr
g_value_init(¶m.value, G_TYPE_UINT);
g_value_set_uint(¶m.value, 1); /* NICE_COMPATIBILITY_GOOGLE */
- purple_media_add_stream(session->media, "google-voice", session->remote_jid,
- PURPLE_MEDIA_AUDIO, "nice", 1, ¶m);
+ if (purple_media_add_stream(session->media, "google-voice", session->remote_jid,
+ PURPLE_MEDIA_AUDIO, "nice", 1, ¶m) == FALSE) {
+ purple_media_error(session->media, "Error adding stream.");
+ purple_media_hangup(session->media);
+ google_session_send_terminate(session);
+ return;
+ }
desc_element = xmlnode_get_child(sess, "description");
More information about the Commits
mailing list