]> git.0d.be Git - empathy.git/commitdiff
Fix call when then stream is created with a 'Bidirectional' direction (Alban Crequy).
authorXavier Claessens <xclaesse@src.gnome.org>
Wed, 5 Mar 2008 10:55:53 +0000 (10:55 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Wed, 5 Mar 2008 10:55:53 +0000 (10:55 +0000)
svn path=/trunk/; revision=700

libempathy/empathy-tp-call.c

index ec8f3475741abc387bf8d0ab71a2e05a3ee7b711..d8cb373310a316b63515670a9970f634d76a5c20 100644 (file)
@@ -105,6 +105,19 @@ tp_call_stream_state_changed_cb (DBusGProxy *channel,
   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");