1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 11:35:32 +00:00

sip: call: Don't fail when hanging up on an incoming call

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-12 15:21:48 +02:00
parent f178b3546b
commit 367ca081a2

View file

@ -368,6 +368,10 @@ calls_sip_call_activate_media (CallsSipCall *self,
gboolean enabled)
{
g_return_if_fail (CALLS_IS_SIP_CALL (self));
/* when hanging up an incoming call the pipeline has not yet been setup */
if (self->pipeline == NULL && !enabled)
return;
g_return_if_fail (CALLS_IS_SIP_MEDIA_PIPELINE (self->pipeline));
if (enabled) {