RTPENGINE-12_Fixed_Segmentation_fault_if_only_offer_received.patch

pull/60/head
Frederic-Philippe Metz 11 years ago committed by Richard Fuchs
parent d79bcfe7e4
commit a4168bee14

@ -2500,19 +2500,21 @@ void call_destroy(struct call *c) {
}
found = 0;
// --- go through partner ml and search the RTP
for (k = ml->active_dialogue->medias.head; k; k = k->next) {
md = k->data;
for (o = md->streams.head; o; o = o->next) {
ps2 = o->data;
if ((PS_ISSET(ps2, RTP) && !PS_ISSET(ps2, RTCP))) {
// --- only RTP is interesting
found = 1;
break;
if (ml->active_dialogue) {
// --- go through partner ml and search the RTP
for (k = ml->active_dialogue->medias.head; k; k = k->next) {
md = k->data;
for (o = md->streams.head; o; o = o->next) {
ps2 = o->data;
if ((PS_ISSET(ps2, RTP) && !PS_ISSET(ps2, RTCP))) {
// --- only RTP is interesting
found = 1;
break;
}
}
if (found) { break; }
}
if (found) { break; }
}
if (ps && ps2 && ps->stats.packets!=0 && ps2->stats.packets==0)

Loading…
Cancel
Save