fix crash

This commit is contained in:
Simon Morlat 2010-06-02 15:09:18 +02:00
parent 2d6667238e
commit d37e618afa
2 changed files with 2 additions and 1 deletions

View file

@ -218,6 +218,7 @@ static void call_accepted(SalOp *op){
}//if there is an accepted incoming call
else
{
linphone_core_set_as_current_call (lc,call);
gstate_new_state(lc, GSTATE_CALL_OUT_CONNECTED, NULL);
linphone_connect_incoming(lc,call);
}

View file

@ -313,7 +313,7 @@ int linphone_core_get_current_call_duration(const LinphoneCore *lc){
const LinphoneAddress *linphone_core_get_current_call_remote_address(struct _LinphoneCore *lc){
LinphoneCall *call=linphone_core_get_current_call(lc);
if (call==NULL) return 0;
if (call==NULL) return NULL;
return linphone_call_get_remote_address(call);
}