summaryrefslogtreecommitdiff
path: root/formats/format_g729.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-23 17:30:56 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-23 17:30:56 +0000
commit6a0fdb312f560e3f6b946bf7de0eabdbcb9b4cb2 (patch)
treeb519cace05d6aea03137f8dfd24837b5ab53dda9 /formats/format_g729.c
parent442f3b15a132522f8c4d706018eb08e9aeeada24 (diff)
don't take locks when reading usecounts, they are not necessary (bug #4585)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_g729.c')
-rwxr-xr-xformats/format_g729.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/formats/format_g729.c b/formats/format_g729.c
index 19e6809be..d28098f89 100755
--- a/formats/format_g729.c
+++ b/formats/format_g729.c
@@ -229,14 +229,7 @@ int unload_module()
int usecount()
{
- int res;
- if (ast_mutex_lock(&g729_lock)) {
- ast_log(LOG_WARNING, "Unable to lock g729 list\n");
- return -1;
- }
- res = glistcnt;
- ast_mutex_unlock(&g729_lock);
- return res;
+ return glistcnt;
}
char *description()