[empathy] empathy-tp-call: we are not sending or receiving video if the video stream doesn't exist
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] empathy-tp-call: we are not sending or receiving video if the video stream doesn't exist
- Date: Mon, 9 Nov 2009 17:17:31 +0000 (UTC)
commit 7fecd09b8b4fab7a7c30ffd8121820dda847a78a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Nov 9 17:07:00 2009 +0000
empathy-tp-call: we are not sending or receiving video if the video stream doesn't exist
libempathy/empathy-tp-call.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index b537ccf..cb9e35c 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]