]> sjero.net Git - linphone/commitdiff
Update current_call before notifiying call state change for LinphoneCallStreamsRunning
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@linphone.org>
Mon, 26 Mar 2012 13:21:32 +0000 (15:21 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@linphone.org>
Mon, 26 Mar 2012 13:32:55 +0000 (15:32 +0200)
coreapi/callbacks.c

index 63bff23a9059e781a77376ab22deb5c834d8024a..5ffd43e44d3a1238f7811d4d7bf1c75cc483a6f5 100644 (file)
@@ -368,9 +368,9 @@ static void call_accepted(SalOp *op){
                                }
                        }
                        linphone_core_update_streams (lc,call,md);
-                       linphone_call_set_state(call, LinphoneCallStreamsRunning, "Streams running");
                        if (!call->current_params.in_conference)
                                lc->current_call=call;
+                       linphone_call_set_state(call, LinphoneCallStreamsRunning, "Streams running");
                }
        }else{
                /*send a bye*/