diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c index e5ae531..bc73e50 100644 --- a/transmitters/nice/fs-nice-stream-transmitter.c +++ b/transmitters/nice/fs-nice-stream-transmitter.c @@ -1488,10 +1488,10 @@ agent_state_changed (NiceAgent *agent, * of the dribbling case, more candidates could come later */ if (state == NICE_COMPONENT_STATE_FAILED && - !self->priv->component_has_been_ready[component_id]) + !self->priv->component_has_been_ready[component_id - 1]) return; else if (state == NICE_COMPONENT_STATE_READY) - self->priv->component_has_been_ready[component_id] = TRUE; + self->priv->component_has_been_ready[component_id - 1] = TRUE; fs_state = nice_component_state_to_fs_stream_state (state); data = g_slice_new (struct state_changed_signal_data);