RTPENGINE-12_Fixed_Segmentation_fault_if_only_offer_received.patch

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

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

Loading…
Cancel
Save