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:
parent
862e0b5f57
commit
cf38ff628b
1 changed files with 7 additions and 3 deletions
|
@ -211,7 +211,7 @@ stop_timeout (CallsCallDisplay *self)
|
|||
|
||||
|
||||
static void
|
||||
select_mode_complete (gboolean success, GError *error)
|
||||
select_mode_complete (gboolean success, GError *error, gpointer data)
|
||||
{
|
||||
if (error)
|
||||
{
|
||||
|
@ -261,11 +261,15 @@ call_state_changed_cb (CallsCallDisplay *self,
|
|||
state != CALLS_CALL_STATE_DIALING
|
||||
&& 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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue