Mercurial > pidgin
comparison libpurple/protocols/jabber/jingle/rtp.c @ 24956:b83c83143a69
Fix crash when remote client reconnects and tries to restart the media session.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Fri, 07 Nov 2008 03:14:10 +0000 |
parents | 365eb0b68d5f |
children | a5f1804fcb4b |
comparison
equal
deleted
inserted
replaced
24955:c6c6dc6ccdc7 | 24956:b83c83143a69 |
---|---|
563 xmlnode_get_child(xmlcontent, "transport")); | 563 xmlnode_get_child(xmlcontent, "transport")); |
564 xmlnode *description = xmlnode_get_child(xmlcontent, "description"); | 564 xmlnode *description = xmlnode_get_child(xmlcontent, "description"); |
565 GList *candidates = jingle_rtp_transport_to_candidates(transport); | 565 GList *candidates = jingle_rtp_transport_to_candidates(transport); |
566 GList *codecs = jingle_rtp_parse_codecs(description); | 566 GList *codecs = jingle_rtp_parse_codecs(description); |
567 | 567 |
568 jingle_rtp_init_media(content); | 568 if (jingle_rtp_init_media(content) == FALSE) { |
569 /* XXX: send error */ | |
570 jabber_iq_send(jingle_session_to_packet(session, | |
571 JINGLE_SESSION_TERMINATE)); | |
572 g_object_unref(session); | |
573 break; | |
574 } | |
569 | 575 |
570 purple_media_set_remote_codecs(jingle_rtp_get_media(session), | 576 purple_media_set_remote_codecs(jingle_rtp_get_media(session), |
571 jingle_content_get_name(content), | 577 jingle_content_get_name(content), |
572 jingle_session_get_remote_jid(session), codecs); | 578 jingle_session_get_remote_jid(session), codecs); |
573 | 579 |