]> sjero.net Git - linphone/blobdiff - gtk/main.c
Defer acceptation of video activation to gather ICE candidates if ICE is enabled.
[linphone] / gtk / main.c
index 2955b3ecc81493aa57330b608772f3e1e63137dd..054677654554366c3c175b42924641cb9e01bf1c 100644 (file)
@@ -1080,11 +1080,7 @@ static void linphone_gtk_notify(LinphoneCall *call, const char *msg){
 
 static void on_call_updated_response(GtkWidget *dialog, gint responseid, LinphoneCall *call){
        if (linphone_call_get_state(call)==LinphoneCallUpdatedByRemote){
-               LinphoneCore *lc=linphone_call_get_core(call);
-               LinphoneCallParams *params=linphone_call_params_copy(linphone_call_get_current_params(call));
-               linphone_call_params_enable_video(params,responseid==GTK_RESPONSE_YES);
-               linphone_core_accept_call_update(lc,call,params);
-               linphone_call_params_destroy(params);
+               linphone_call_enable_video(call, responseid==GTK_RESPONSE_YES);
        }
        linphone_call_unref(call);
        g_source_remove_by_user_data(dialog);