diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2015-11-09 10:04:24 +0100 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2015-11-09 17:02:52 +0100 |
commit | 1bff400df7ff1fda353fab49de2fcf9cbba5cd89 (patch) | |
tree | 21e47ad2a45ffa5197e8469654171860aba7d87f /include | |
parent | 506aea26e6c67cd53874aa3ffef278524dfd7878 (diff) |
ast_format_cap_get_names: To display all formats, the buffer was increased.
ASTERISK-25533 #close
Change-Id: Ie1a9d1a6511b3f1a56b93d04475fbf8a4e40010a
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/format_cap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/format_cap.h b/include/asterisk/format_cap.h index 94e81f869..a86fd210e 100644 --- a/include/asterisk/format_cap.h +++ b/include/asterisk/format_cap.h @@ -321,6 +321,11 @@ int ast_format_cap_has_type(const struct ast_format_cap *cap, enum ast_media_typ */ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str **buf); +#ifndef AST_FORMAT_CAP_NAMES_LEN +/*! Buffer size for callers of ast_format_cap_get_names to allocate. */ +#define AST_FORMAT_CAP_NAMES_LEN 384 +#endif + /*! * \brief Determine if a format cap has no formats in it. * |