pidgin: 80b95727: More gracefully handle stream creation e...

maiku at pidgin.im maiku at pidgin.im
Sat Aug 22 00:05:40 EDT 2009


-----------------------------------------------------------------
Revision: 80b957274167b799f50a5a624aca956f6eb02714
Ancestor: a3cbe3e11bc3bb7a4c1ecd17011d62ffba9abedf
Author: maiku at pidgin.im
Date: 2009-08-22T04:02:22
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/80b957274167b799f50a5a624aca956f6eb02714

Modified files:
        libpurple/protocols/jabber/jingle/rtp.c

ChangeLog: 

More gracefully handle stream creation errors with Jingle calls.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/rtp.c	f20cca5138b1d953b7ae104bb8e6a8d112bbb381
+++ libpurple/protocols/jabber/jingle/rtp.c	62b478b1bbcd47096afdd08792b94e7cb3ec51d8
@@ -607,8 +607,11 @@ jingle_rtp_init_media(JingleContent *con
 		is_creator = !jingle_session_is_initiator(session);
 	g_free(creator);
 
-	purple_media_add_stream(media, name, remote_jid,
-			type, is_creator, transmitter, num_params, params);
+	if(!purple_media_add_stream(media, name, remote_jid,
+			type, is_creator, transmitter, num_params, params)) {
+		purple_media_end(media, NULL, NULL);
+		return FALSE;
+	}
 
 	g_free(name);
 	g_free(media_type);


More information about the Commits mailing list