From 6c1cb067c33e2d69e6ebb4bf3f96a4032e941c55 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 25 Apr 2014 09:53:12 -0400 Subject: [PATCH] fix relay ICE candidate type for RTP candidate --- daemon/sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index ea63986ae..0bbfa275d 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1480,7 +1480,7 @@ static void insert_candidates(struct sdp_chopper *chop, struct packet_stream *rt chopper_append_str(chop, &ice_foundation_str); chopper_append_printf(chop, " 1 UDP %lu ", priority); insert_ice_address(chop, rtp); - if (relay == 1) + if (relay) chopper_append_c(chop, " typ relay\r\n"); else chopper_append_c(chop, " typ host\r\n"); @@ -1507,7 +1507,7 @@ static void insert_candidates_alt(struct sdp_chopper *chop, struct packet_stream chopper_append_str(chop, &ice_foundation_str_alt); chopper_append_printf(chop, " 1 UDP %lu ", priority); insert_ice_address_alt(chop, rtp); - if (relay == 1) + if (relay) chopper_append_c(chop, " typ relay\r\n"); else chopper_append_c(chop, " typ host\r\n");