From 367ca081a27756b3addf7fb443e0856aaf56aa1c Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 12 Apr 2021 15:21:48 +0200 Subject: [PATCH] sip: call: Don't fail when hanging up on an incoming call --- plugins/sip/calls-sip-call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/sip/calls-sip-call.c b/plugins/sip/calls-sip-call.c index af7c99b..d8764a2 100644 --- a/plugins/sip/calls-sip-call.c +++ b/plugins/sip/calls-sip-call.c @@ -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) {