1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 15:47:35 +00:00

call-display: update libcallaudio API calls

Upstream modified the async API, make sure we use it.
This commit is contained in:
Arnaud Ferraris 2021-01-12 18:40:12 +01:00 committed by Evangelos Ribeiro Tzaras
parent 862e0b5f57
commit cf38ff628b

View file

@ -211,7 +211,7 @@ stop_timeout (CallsCallDisplay *self)
static void static void
select_mode_complete (gboolean success, GError *error) select_mode_complete (gboolean success, GError *error, gpointer data)
{ {
if (error) if (error)
{ {
@ -261,11 +261,15 @@ call_state_changed_cb (CallsCallDisplay *self,
state != CALLS_CALL_STATE_DIALING state != CALLS_CALL_STATE_DIALING
&& state != CALLS_CALL_STATE_ALERTING); && state != CALLS_CALL_STATE_ALERTING);
call_audio_select_mode_async (CALL_AUDIO_MODE_CALL, select_mode_complete); call_audio_select_mode_async (CALL_AUDIO_MODE_CALL,
select_mode_complete,
NULL);
break; break;
case CALLS_CALL_STATE_DISCONNECTED: case CALLS_CALL_STATE_DISCONNECTED:
call_audio_select_mode_async (CALL_AUDIO_MODE_DEFAULT, select_mode_complete); call_audio_select_mode_async (CALL_AUDIO_MODE_DEFAULT,
select_mode_complete,
NULL);
break; break;
} }