return 0;
}
-static void __update_data_recovery_type_from_remote_offer_description(webrtc_s *webrtc)
+static void __update_data_recovery_type_from_remote_description(webrtc_s *webrtc)
{
guint i, j;
guint attr_length;
LOG_DEBUG("webrtc[%p] [SignalingState] is changed to [%s]", webrtc, __signaling_state_info[state].str);
webrtc->negotiation_states.signaling_state = __signaling_state_info[state].state;
- if (state == GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER)
- __update_data_recovery_type_from_remote_offer_description(webrtc);
+ if (state == GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER ||
+ state == GST_WEBRTC_SIGNALING_STATE_STABLE)
+ __update_data_recovery_type_from_remote_description(webrtc);
__post_signaling_state_change_cb_in_idle(webrtc, state);
}