[svn-commits] oej: branch oej/silence-detection-games-1.8 r411912 - /team/oej/silence-detec...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Apr 8 01:37:05 CDT 2014
Author: oej
Date: Tue Apr 8 01:37:01 2014
New Revision: 411912
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411912
Log:
It's not a module, kiddo.
Modified:
team/oej/silence-detection-games-1.8/main/silencedetection.c
Modified: team/oej/silence-detection-games-1.8/main/silencedetection.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/silence-detection-games-1.8/main/silencedetection.c?view=diff&rev=411912&r1=411911&r2=411912
==============================================================================
--- team/oej/silence-detection-games-1.8/main/silencedetection.c (original)
+++ team/oej/silence-detection-games-1.8/main/silencedetection.c Tue Apr 8 01:37:01 2014
@@ -25,7 +25,7 @@
*
* This is an internal API and have no functions, applications or other cool stuff to expose.
*
- * \note This module only handles audio streams
+ * \note This code only handles audio streams
* For silence in video, check Ingmar Bergman movies on Wikipedia. We have
* no current way to detect video "silence" so we can't optimize that type of movies.
*/
@@ -48,7 +48,6 @@
#include "asterisk/options.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
-#include "asterisk/module.h"
#include "asterisk/config.h"
#include "asterisk/file.h"
#include "asterisk/pbx.h"
@@ -86,7 +85,6 @@
/* Destroy the audiohook, and destroy ourselves */
ast_audiohook_destroy(&sildet->audiohook);
ast_free(sildet);
- ast_module_unref(ast_module_info->self);
return;
}
@@ -198,7 +196,6 @@
ast_log(LOG_ERROR, "Failed to attach audiohook for silence detection on channel %s\n", chan->name);
return -1;
}
- ast_module_ref(ast_module_info->self);
ast_debug(2, "Initialized audiohook for silence detection on channel %s\n", chan->name);
return 0;
}
More information about the svn-commits
mailing list