patch: move unsupported codecs to the end of the list
This commit is contained in:
parent
55fc138760
commit
5b86cffba3
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue