mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
format_cap: Perform codec lookups by pointer instead of name
ASTERISK-28416 #close Change-Id: I069420875ebdbcaada52d92599a5f7de3cb2cdf4
This commit is contained in:
committed by
George Joseph
parent
df429c97a1
commit
c9cc281484
@@ -232,7 +232,7 @@ int ast_format_cap_append_by_type(struct ast_format_cap *cap, enum ast_media_typ
|
||||
continue;
|
||||
}
|
||||
|
||||
format = ast_format_cache_get(codec->name);
|
||||
format = ast_format_cache_get_by_codec(codec);
|
||||
|
||||
if (format == ast_format_none) {
|
||||
ao2_ref(format, -1);
|
||||
|
Reference in New Issue
Block a user