[Nice] [nice/master] Unlock agent when emitting state-changed signal

Olivier Crête olivier.crete at collabora.co.uk
Wed Nov 5 14:01:13 PST 2008


---
 agent/agent.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/agent/agent.c b/agent/agent.c
index 360437d..532792e 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -619,8 +619,10 @@ void agent_signal_component_state_change (NiceAgent *agent, guint stream_id, gui
 	     stream_id, component_id, component->state, state);
     component->state = state;
 
+    g_mutex_unlock (agent->mutex);
     g_signal_emit (agent, signals[SIGNAL_COMPONENT_STATE_CHANGED], 0,
-		   stream_id, component_id, component->state);
+		   stream_id, component_id, state);
+    g_mutex_lock (agent->mutex);
   }
 }
 
-- 
1.5.6.5




More information about the Nice mailing list