patch: move unsupported codecs to the end of the list

This commit is contained in:
Alfred E. Heggestad 2012-02-15 23:05:11 +00:00
parent 55fc138760
commit 5b86cffba3

View file

@ -226,6 +226,21 @@ void sdp_media_align_formats(struct sdp_media *m, bool offer)
list_append(&m->lfmtl, &lfmt->le, lfmt);
}
}
if (offer) {
for (lle=m->lfmtl.tail; lle; ) {
lfmt = lle->data;
lle = lle->prev;
if (!lfmt->sup) {
list_unlink(&lfmt->le);
list_append(&m->lfmtl, &lfmt->le, lfmt);
}
}
}
}