All pastes #927964 Raw Edit

Something

public text v1 · immutable
·published 2008-03-04 18:03 UTC
rendered paste body
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index ec8f347..1427dcd 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -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 == 2)
+      {
+        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");