libpurple/protocols/jabber/jingle/rtp.c

changeset 28161
4368c139d67f
parent 28111
61de2e173be9
child 28322
ac8fec1d2234
child 28330
07902a9634f9
--- a/libpurple/protocols/jabber/jingle/rtp.c	Wed Aug 12 10:04:54 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/rtp.c	Thu Aug 13 04:55:29 2009 +0000
@@ -589,8 +589,8 @@
 	if (!strcmp(senders, "both"))
 		type = is_audio == TRUE ? PURPLE_MEDIA_AUDIO
 				: PURPLE_MEDIA_VIDEO;
-	else if (!strcmp(senders, "initiator")
-			&& jingle_session_is_initiator(session))
+	else if ((strcmp(senders, "initiator") == 0) ==
+			jingle_session_is_initiator(session))
 		type = is_audio == TRUE ? PURPLE_MEDIA_SEND_AUDIO
 				: PURPLE_MEDIA_SEND_VIDEO;
 	else

mercurial