# HG changeset patch # User Mike Ruprecht # Date 1237458250 0 # Node ID 95794e9acf71fe88797736bb20537aa7d8a5f1ab # Parent 08e4ad2fcd631c98b81485bf7d18e4d3a679d410 Use new find_content wildcard. diff -r 08e4ad2fcd63 -r 95794e9acf71 libpurple/protocols/jabber/jingle/rtp.c --- a/libpurple/protocols/jabber/jingle/rtp.c Thu Mar 19 10:23:35 2009 +0000 +++ b/libpurple/protocols/jabber/jingle/rtp.c Thu Mar 19 10:24:10 2009 +0000 @@ -347,15 +347,12 @@ gchar *sid, gchar *name, JingleSession *session) { JingleContent *content = jingle_session_find_content( - session, sid, "initiator"); + session, sid, NULL); JingleTransport *oldtransport, *transport; GList *candidates; purple_debug_info("jingle-rtp", "jingle_rtp_candidates_prepared_cb\n"); - if (content == NULL) - jingle_session_find_content(session, sid, "responder"); - if (content == NULL) { purple_debug_error("jingle-rtp", "jingle_rtp_candidates_prepared_cb: " @@ -389,15 +386,11 @@ jingle_rtp_new_candidate_cb(PurpleMedia *media, gchar *sid, gchar *name, PurpleMediaCandidate *candidate, JingleSession *session) { JingleContent *content = jingle_session_find_content( - session, sid, "initiator"); + session, sid, NULL); JingleTransport *transport; purple_debug_info("jingle-rtp", "jingle_rtp_new_candidate_cb\n"); - if (content == NULL) - content = jingle_session_find_content( - session, sid, "responder"); - if (content == NULL) { purple_debug_error("jingle-rtp", "jingle_rtp_new_candidate_cb: "