empathy r700 - trunk/libempathy



Author: xclaesse
Date: Wed Mar  5 10:55:53 2008
New Revision: 700
URL: http://svn.gnome.org/viewvc/empathy?rev=700&view=rev

Log:
Fix call when then stream is created with a 'Bidirectional' direction (Alban Crequy).


Modified:
   trunk/libempathy/empathy-tp-call.c

Modified: trunk/libempathy/empathy-tp-call.c
==============================================================================
--- trunk/libempathy/empathy-tp-call.c	(original)
+++ trunk/libempathy/empathy-tp-call.c	Wed Mar  5 10:55:53 2008
@@ -105,6 +105,19 @@
   else if (stream_id == priv->video->id)
     {
       priv->video->state = stream_state;
+      if (stream_state == TP_MEDIA_STREAM_STATE_CONNECTED)
+      {
+        if (priv->video->direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE)
+          {
+            empathy_debug (DEBUG_DOMAIN, "RECEIVING");
+            g_signal_emit_by_name (call, "receiving-video", TRUE);
+          }
+        if (priv->video->direction & TP_MEDIA_STREAM_DIRECTION_SEND)
+          {
+            empathy_debug (DEBUG_DOMAIN, "SENDING");
+            g_signal_emit_by_name (call, "sending-video", TRUE);
+          }
+      }
     }
 
   g_signal_emit_by_name (call, "status-changed");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]