aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-call.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-10 01:07:00 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-10 01:17:22 +0800
commit7fecd09b8b4fab7a7c30ffd8121820dda847a78a (patch)
tree013e9c43c8450f96884eae7276e63b961840dfc1 /libempathy/empathy-tp-call.c
parent513b764e2f6a6e26ff0046f2bbbecacfc3dec749 (diff)
downloadgsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.tar
gsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.tar.gz
gsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.tar.bz2
gsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.tar.lz
gsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.tar.xz
gsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.tar.zst
gsoc2013-empathy-7fecd09b8b4fab7a7c30ffd8121820dda847a78a.zip
empathy-tp-call: we are not sending or receiving video if the video stream doesn't exist
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;
}