mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 20:35:31 +00:00
sip: call: Don't fail when hanging up on an incoming call
This commit is contained in:
parent
f178b3546b
commit
367ca081a2
1 changed files with 4 additions and 0 deletions
|
@ -368,6 +368,10 @@ calls_sip_call_activate_media (CallsSipCall *self,
|
||||||
gboolean enabled)
|
gboolean enabled)
|
||||||
{
|
{
|
||||||
g_return_if_fail (CALLS_IS_SIP_CALL (self));
|
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));
|
g_return_if_fail (CALLS_IS_SIP_MEDIA_PIPELINE (self->pipeline));
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
|
Loading…
Reference in a new issue