changeset 26384:95794e9acf71

Use new find_content wildcard.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 19 Mar 2009 10:24:10 +0000
parents 08e4ad2fcd63
children 7e24c04ab5c9
files libpurple/protocols/jabber/jingle/rtp.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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: "