From 7fecd09b8b4fab7a7c30ffd8121820dda847a78a Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 9 Nov 2009 17:07:00 +0000 Subject: empathy-tp-call: we are not sending or receiving video if the video stream doesn't exist --- libempathy/empathy-tp-call.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libempathy') 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; } -- cgit v1.2.3