fix make dist and null pointer when rtt is disabled

This commit is contained in:
Simon Morlat 2016-01-06 10:51:32 +01:00
parent 590f80a463
commit 321c1d7fd9
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ liblinphone_la_SOURCES=\
xml.c \
xmlrpc.c \
vtables.c \
ringtoneplayer.c \
ringtoneplayer.c ringtoneplayer.h\
$(GITVERSION_FILE)
if BUILD_UPNP

View file

@ -2483,7 +2483,7 @@ void linphone_call_init_text_stream(LinphoneCall *call){
LinphoneCore *lc=call->core;
char* cname;
if (call->textstream != NULL || !call->params->realtimetext_enabled) return;
if (call->textstream != NULL) return;
if (call->sessions[call->main_text_stream_index].rtp_session == NULL) {
SalMulticastRole multicast_role = linphone_call_get_multicast_role(call, SalText);
SalMediaDescription *remotedesc = NULL;