aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-call.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r--libempathy/empathy-tp-call.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index b537ccf51..cb9e35cde 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -745,6 +745,9 @@ empathy_tp_call_is_receiving_video (EmpathyTpCall *call)
g_return_val_if_fail (EMPATHY_IS_TP_CALL (call), FALSE);
+ if (!priv->video->exists)
+ return FALSE;
+
return priv->video->direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE ?
TRUE : FALSE;
}
@@ -764,6 +767,9 @@ empathy_tp_call_is_sending_video (EmpathyTpCall *call)
g_return_val_if_fail (EMPATHY_IS_TP_CALL (call), FALSE);
+ if (!priv->video->exists)
+ return FALSE;
+
return priv->video->direction & TP_MEDIA_STREAM_DIRECTION_SEND ?
TRUE : FALSE;
}