Browse Source

fix relay ICE candidate type for RTP candidate

pull/6/head
Richard Fuchs 12 years ago
parent
commit
6c1cb067c3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/sdp.c

+ 2
- 2
daemon/sdp.c View File

@ -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");


Loading…
Cancel
Save