From e8892926fddea5d70f934a10f70d3391dd403c82 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Fri, 15 Mar 2013 17:49:58 -0700 Subject: [PATCH] Mixer/Chain: Don't block RT thread when printing debugging messages. --- mixer/src/Chain.C | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/mixer/src/Chain.C b/mixer/src/Chain.C index a581c6b..8c2fee7 100644 --- a/mixer/src/Chain.C +++ b/mixer/src/Chain.C @@ -562,12 +562,6 @@ Chain::insert ( Module *m, Module *n ) n->chain( this ); } - DMESSAGE( "Module \"%s\" has %i:%i audio and %i:%i control ports", - n->name(), - n->ninputs(), - n->noutputs(), - n->ncontrol_inputs(), - n->ncontrol_outputs() ); strip()->handle_module_added( n ); @@ -575,14 +569,21 @@ Chain::insert ( Module *m, Module *n ) engine()->unlock(); + DMESSAGE( "Module \"%s\" has %i:%i audio and %i:%i control ports", + n->name(), + n->ninputs(), + n->noutputs(), + n->ncontrol_inputs(), + n->ncontrol_outputs() ); + return true; err: - DMESSAGE( "Insert failed" ); - engine()->unlock(); + DMESSAGE( "Insert failed" ); + return false; }