changeset 32379:76b7754ba906

Minor optimization
author Mark Doliner <mark@kingant.net>
date Tue, 06 Dec 2011 06:58:41 +0000
parents dd84029b4d03
children 231c9635b82a
files libpurple/protocols/jabber/jingle/rtp.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/rtp.c	Tue Dec 06 06:50:18 2011 +0000
+++ b/libpurple/protocols/jabber/jingle/rtp.c	Tue Dec 06 06:58:41 2011 +0000
@@ -577,11 +577,12 @@
 	guint num_params;
 
 	/* maybe this create ought to just be in initiate and handle initiate */
-	if (media == NULL)
+	if (media == NULL) {
 		media = jingle_rtp_create_media(content);
 
-	if (media == NULL)
-		return FALSE;
+		if (media == NULL)
+			return FALSE;
+	}
 
 	name = jingle_content_get_name(content);
 	media_type = jingle_rtp_get_media_type(content);