pidgin: 96053e41: Make Gmail accept speex as the codec.
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Tue Jun 2 01:15:39 EDT 2009
-----------------------------------------------------------------
Revision: 96053e4134082b7931e5641214f274bced3fa0c3
Ancestor: 870436d8e969e6b58532a1361f5e04f6572dfb75
Author: maiku at soc.pidgin.im
Date: 2009-06-02T05:10:19
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/96053e4134082b7931e5641214f274bced3fa0c3
Modified files:
libpurple/protocols/jabber/google.c
ChangeLog:
Make Gmail accept speex as the codec.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/google.c 06a942c82e81c1324da3208abc35d6712a4e53a7
+++ libpurple/protocols/jabber/google.c 02aced3c4f07414bd17762acd50cc7c09e419456
@@ -263,7 +263,14 @@ google_session_ready(GoogleSession *sess
if (session->video)
xmlnode_set_namespace(payload, NS_GOOGLE_PHONE);
xmlnode_set_attrib(payload, "id", id);
- xmlnode_set_attrib(payload, "name", encoding_name);
+ /*
+ * Hack to make Gmail accept speex as the codec.
+ * It shouldn't have to be case sensitive.
+ */
+ if (purple_strequal(encoding_name, "SPEEX"))
+ xmlnode_set_attrib(payload, "name", "speex");
+ else
+ xmlnode_set_attrib(payload, "name", encoding_name);
xmlnode_set_attrib(payload, "clockrate", clock_rate);
g_free(clock_rate);
g_free(encoding_name);
More information about the Commits
mailing list