From 2d3d975425f59a74135d0ca03606fae7943052c8 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 5 Apr 2016 10:58:46 +0200 Subject: [PATCH] Fix wrong stream index in stop_text_stream --- coreapi/linphonecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index fb59f9f72..67ed6f856 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -3721,7 +3721,7 @@ static void linphone_call_stop_text_stream(LinphoneCall *call) { update_rtp_stats(call, call->main_text_stream_index); text_stream_stop(call->textstream); call->textstream = NULL; - linphone_call_handle_stream_events(call, call->main_video_stream_index); + linphone_call_handle_stream_events(call, call->main_text_stream_index); 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_destroy(call->textstream_app_evq);