summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-media-call-stream.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-03-05 13:07:03 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-03-14 18:08:50 -0400
commit7358f2ad6fd53652d5ed0c008b7f3876a6ae5fa7 (patch)
tree20864419fa4679cfaa949d4f757e6ceadd52ec65 /telepathy-glib/base-media-call-stream.c
parentff2e7f25e366c94d8bf41134cce8a65daf16cc18 (diff)
downloadtelepathy-glib-7358f2ad6fd53652d5ed0c008b7f3876a6ae5fa7.tar.gz
BaseMediaCallStream: Never start sending until a call is accepted
Diffstat (limited to 'telepathy-glib/base-media-call-stream.c')
-rw-r--r--telepathy-glib/base-media-call-stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/base-media-call-stream.c b/telepathy-glib/base-media-call-stream.c
index 092a7b6c3..0fdfa1567 100644
--- a/telepathy-glib/base-media-call-stream.c
+++ b/telepathy-glib/base-media-call-stream.c
@@ -842,6 +842,9 @@ tp_base_media_call_stream_update_sending_state (TpBaseMediaCallStream *self)
goto done;
}
+ if (!tp_base_call_channel_is_accepted (TP_BASE_CALL_CHANNEL (channel)))
+ goto done;
+
if (self->priv->remotely_held)
goto done;