From: Simon Morlat Date: Mon, 25 Feb 2013 16:44:51 +0000 (+0100) Subject: fix offer answer bug when counting active streams. X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=4ff35a87df5eff891e635e0f9c8ccea7d16a58b8 fix offer answer bug when counting active streams. --- diff --git a/coreapi/offeranswer.c b/coreapi/offeranswer.c index ab38f763..9823c24a 100644 --- a/coreapi/offeranswer.c +++ b/coreapi/offeranswer.c @@ -313,10 +313,9 @@ int offer_answer_initiate_incoming(const SalMediaDescription *local_capabilities }else ms_warning("Unknown protocol for mline %i, declining",i); if (ls){ initiate_incoming(ls,rs,&result->streams[i],one_matching_codec); - result->n_active_streams++; - } - else { - /* create an inactive stream for the answer, as there where no matching stream a local capability */ + if (result->streams[i].rtp_port!=0) result->n_active_streams++; + }else { + /* create an inactive stream for the answer, as there where no matching stream in local capabilities */ result->streams[i].dir=SalStreamInactive; result->streams[i].rtp_port=0; result->streams[i].type=rs->type;