mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-23 16:48:32 +00:00
Fix crash with RTT/ICE when network goes down/up again while in call
This commit is contained in:
parent
0b69dbaa21
commit
a2ba8b72bb
1 changed files with 2 additions and 2 deletions
|
|
@ -2268,7 +2268,7 @@ int linphone_call_prepare_ice(LinphoneCall *call, bool_t incoming_offer){
|
||||||
video_stream_prepare_video(call->videostream);
|
video_stream_prepare_video(call->videostream);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (call->params->realtimetext_enabled) {
|
if (call->params->realtimetext_enabled && call->textstream->ms.state==MSStreamInitialized) {
|
||||||
text_stream_prepare_text(call->textstream);
|
text_stream_prepare_text(call->textstream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3718,9 +3718,9 @@ static void linphone_call_stop_text_stream(LinphoneCall *call) {
|
||||||
linphone_reporting_update_media_info(call, LINPHONE_CALL_STATS_TEXT);
|
linphone_reporting_update_media_info(call, LINPHONE_CALL_STATS_TEXT);
|
||||||
media_stream_reclaim_sessions(&call->textstream->ms, &call->sessions[call->main_text_stream_index]);
|
media_stream_reclaim_sessions(&call->textstream->ms, &call->sessions[call->main_text_stream_index]);
|
||||||
linphone_call_log_fill_stats(call->log, (MediaStream*)call->textstream);
|
linphone_call_log_fill_stats(call->log, (MediaStream*)call->textstream);
|
||||||
|
update_rtp_stats(call, call->main_text_stream_index);
|
||||||
text_stream_stop(call->textstream);
|
text_stream_stop(call->textstream);
|
||||||
call->textstream = NULL;
|
call->textstream = NULL;
|
||||||
update_rtp_stats(call, call->main_text_stream_index);
|
|
||||||
linphone_call_handle_stream_events(call, call->main_video_stream_index);
|
linphone_call_handle_stream_events(call, call->main_video_stream_index);
|
||||||
rtp_session_unregister_event_queue(call->sessions[call->main_text_stream_index].rtp_session, call->textstream_app_evq);
|
rtp_session_unregister_event_queue(call->sessions[call->main_text_stream_index].rtp_session, call->textstream_app_evq);
|
||||||
ortp_ev_queue_flush(call->textstream_app_evq);
|
ortp_ev_queue_flush(call->textstream_app_evq);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue