aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-03-05 18:55:53 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-03-05 18:55:53 +0800
commitdcc2eb1c4a839d9b991467bc771dede6a80a169a (patch)
tree0c18e72b6858e03d181af1a34bdeecf46228723a /libempathy
parenta7112593ab7be0dd2895834f06afe9bd47578fca (diff)
downloadgsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.tar
gsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.tar.gz
gsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.tar.bz2
gsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.tar.lz
gsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.tar.xz
gsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.tar.zst
gsoc2013-empathy-dcc2eb1c4a839d9b991467bc771dede6a80a169a.zip
Fix call when then stream is created with a 'Bidirectional' direction (Alban Crequy).
svn path=/trunk/; revision=700
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-call.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index ec8f34757..d8cb37331 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 == 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");