]> sjero.net Git - linphone/commitdiff
fix bandwidths
authorSimon Morlat <simon.morlat@linphone.org>
Mon, 8 Feb 2010 13:56:23 +0000 (14:56 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Mon, 8 Feb 2010 13:56:23 +0000 (14:56 +0100)
coreapi/sal_eXosip2_sdp.c

index d517a7222c46758beabefdaabed2f4911e067d53..1189477d6b282fece036c760f9fe60bb0db92b22 100644 (file)
@@ -177,7 +177,7 @@ static void add_line(sdp_message_t *msg, int lineno, const SalStreamDescription
        sdp_message_m_media_add (msg, osip_strdup (mt),
                                 int_2char (port), NULL,
                                 osip_strdup ("RTP/AVP"));
-       sdp_message_b_bandwidth_add (msg, lineno, osip_strdup ("AS"),
+       if (desc->bandwidth>0) sdp_message_b_bandwidth_add (msg, lineno, osip_strdup ("AS"),
                                     int_2char(desc->bandwidth));
        for(elem=desc->payloads;elem!=NULL;elem=elem->next){
                add_payload(msg, lineno, (PayloadType*)elem->data);