]> git.ipfire.org Git - thirdparty/asterisk.git/commit
format_cap: Don't append the 'none' format when appending all. 12/1612/3
authorJoshua Colp <jcolp@digium.com>
Thu, 12 Nov 2015 12:24:06 +0000 (08:24 -0400)
committerJoshua Colp <jcolp@digium.com>
Thu, 12 Nov 2015 13:48:42 +0000 (08:48 -0500)
commita159747660932ff442ba737a8addd3268b835147
tree328ccbceadf07cf6e089cb5e66fcc3daea251889
parent2954354404e915aa4d20f1ee400c8a3a835fac7b
format_cap: Don't append the 'none' format when appending all.

When appending all formats of a type all the codecs are iterated
and added. This operation was incorrectly adding the ast_format_none
format which is special in that it is supposed to be used when no
format is present. It shouldn't be appended.

ASTERISK-25535

Change-Id: I7b00f3bdf4a5f3022e483d6ece602b1e8b12827c
main/format_cap.c
tests/test_format_cap.c