]> git.0d.be Git - empathy.git/commitdiff
empathy-tp-call: we are not sending or receiving video if the video stream doesn...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 Nov 2009 17:07:00 +0000 (17:07 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 Nov 2009 17:17:22 +0000 (17:17 +0000)
libempathy/empathy-tp-call.c

index b537ccf511bc21ddd47903bec4ab407a65cef9cb..cb9e35cde21e9b80f1aae3572ba56e94d44529d4 100644 (file)
@@ -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;
 }