fix segfault when using legacy control protocol

fixes #652

Change-Id: Id60351e41411ae5a309bf7b1da98b1ec34c37d66
changes/26/24726/1
Richard Fuchs 7 years ago
parent e9f9ae75ad
commit 13c21b1400

@ -1763,7 +1763,7 @@ int monologue_offer_answer(struct call_monologue *other_ml, GQueue *streams,
media->ptime = sp->ptime;
other_media->ptime = sp->ptime;
}
if (flags->ptime > 0)
if (flags && flags->ptime > 0)
media->ptime = flags->ptime;
codec_rtp_payload_types(media, other_media, &sp->rtp_payload_types, flags);
codec_handlers_update(media, other_media, flags);

Loading…
Cancel
Save