diff options
author | Matt Jordan <mjordan@digium.com> | 2015-04-28 06:42:30 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-04-28 06:42:30 -0500 |
commit | e43fa9868b2f21289c601cf1c477e6f7c0b7e716 (patch) | |
tree | 48bd6cc85f8f84cb36aff0b28d73c6910ecc8005 /main/format_cache.c | |
parent | 356568dc7f75422c27fc89f57feac8e797531f30 (diff) | |
parent | 5c1d07baf083fd791c8f717209551d9227413ef7 (diff) |
Merge "Astobj2: Allow reference debugging to be enabled/disabled by config."
Diffstat (limited to 'main/format_cache.c')
-rw-r--r-- | main/format_cache.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/main/format_cache.c b/main/format_cache.c index 3e729769c..def795c9d 100644 --- a/main/format_cache.c +++ b/main/format_cache.c @@ -457,22 +457,14 @@ int ast_format_cache_set(struct ast_format *format) return 0; } -struct ast_format *__ast_format_cache_get(const char *name) +struct ast_format *__ast_format_cache_get(const char *name, + const char *tag, const char *file, int line, const char *func) { if (ast_strlen_zero(name)) { return NULL; } - return ao2_find(formats, name, OBJ_SEARCH_KEY); -} - -struct ast_format *__ast_format_cache_get_debug(const char *name, const char *tag, const char *file, int line, const char *func) -{ - if (ast_strlen_zero(name)) { - return NULL; - } - - return __ao2_find_debug(formats, name, OBJ_SEARCH_KEY, S_OR(tag, "ast_format_cache_get"), file, line, func); + return __ao2_find(formats, name, OBJ_SEARCH_KEY, tag, file, line, func); } struct ast_format *ast_format_cache_get_slin_by_rate(unsigned int rate) |