]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-call.c
Fix call when then stream is created with a 'Bidirectional' direction (Alban Crequy).
[empathy.git] / 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");