[asterisk-commits] rmudgett: trunk r378858 - /trunk/bridges/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 9 17:23:44 CST 2013
Author: rmudgett
Date: Wed Jan 9 17:23:41 2013
New Revision: 378858
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378858
Log:
Trivial misc bridge code changes.
* softmix_bridge_thread() was redundantly initializing an 8K buffer.
* Promoted a debug message to a warning in multiplexed_add_or_remove().
Modified:
trunk/bridges/bridge_multiplexed.c
trunk/bridges/bridge_softmix.c
Modified: trunk/bridges/bridge_multiplexed.c
URL: http://svnview.digium.com/svn/asterisk/trunk/bridges/bridge_multiplexed.c?view=diff&rev=378858&r1=378857&r2=378858
==============================================================================
--- trunk/bridges/bridge_multiplexed.c (original)
+++ trunk/bridges/bridge_multiplexed.c Wed Jan 9 17:23:41 2013
@@ -290,7 +290,8 @@
ao2_ref(multiplexed_thread, +1);
if (ast_pthread_create(&multiplexed_thread->thread, NULL, multiplexed_thread_function, multiplexed_thread)) {
ao2_ref(multiplexed_thread, -1);
- ast_debug(1, "Failed to create an actual thread for multiplexed thread '%p', trying next time\n", multiplexed_thread);
+ ast_log(LOG_WARNING, "Failed to create the bridge thread for multiplexed thread '%p', trying next time\n",
+ multiplexed_thread);
}
} else if (!multiplexed_thread->service_count && multiplexed_thread->thread != AST_PTHREADT_NULL) {
thread = multiplexed_thread->thread;
Modified: trunk/bridges/bridge_softmix.c
URL: http://svnview.digium.com/svn/asterisk/trunk/bridges/bridge_softmix.c?view=diff&rev=378858&r1=378857&r2=378858
==============================================================================
--- trunk/bridges/bridge_softmix.c (original)
+++ trunk/bridges/bridge_softmix.c Wed Jan 9 17:23:41 2013
@@ -750,7 +750,7 @@
struct softmix_bridge_data *softmix_data = bridge->bridge_pvt;
struct ast_timer *timer;
struct softmix_translate_helper trans_helper;
- int16_t buf[MAX_DATALEN] = { 0, };
+ int16_t buf[MAX_DATALEN];
unsigned int stat_iteration_counter = 0; /* counts down, gather stats at zero and reset. */
int timingfd;
int update_all_rates = 0; /* set this when the internal sample rate has changed */
More information about the asterisk-commits
mailing list