[Asterisk-cvs] asterisk/formats format_wav_gsm.c,1.22,1.23
markster at lists.digium.com
markster at lists.digium.com
Wed Sep 1 23:29:54 CDT 2004
Update of /usr/cvsroot/asterisk/formats
In directory mongoose.digium.com:/tmp/cvs-serv9546/formats
Modified Files:
format_wav_gsm.c
Log Message:
Decrease use count in wav_gsm (bug #2350)
Index: format_wav_gsm.c
===================================================================
RCS file: /usr/cvsroot/asterisk/formats/format_wav_gsm.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- format_wav_gsm.c 4 Aug 2004 00:42:49 -0000 1.22
+++ format_wav_gsm.c 2 Sep 2004 03:33:09 -0000 1.23
@@ -390,6 +390,11 @@
static void wav_close(struct ast_filestream *s)
{
char zero = 0;
+ if (ast_mutex_lock(&wav_lock)) {
+ ast_log(LOG_WARNING, "Unable to lock wav list\n");
+ return;
+ }
+ glistcnt--;
ast_mutex_unlock(&wav_lock);
ast_update_use_count();
/* Pad to even length */
More information about the svn-commits
mailing list