[telepathy-gabble/master] Use the first transport of an incoming stream as the default transport
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Dec 29 05:35:17 PST 2009
---
src/call-channel.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/call-channel.c b/src/call-channel.c
index 9b4d625..48cdb74 100644
--- a/src/call-channel.c
+++ b/src/call-channel.c
@@ -174,6 +174,11 @@ gabble_call_channel_constructed (GObject *obj)
GabbleJingleContent *content = GABBLE_JINGLE_CONTENT (l->data);
JingleMediaType mtype;
+ if (priv->transport_ns == NULL)
+ g_object_get (content, "transport-ns",
+ &priv->transport_ns,
+ NULL);
+
call_channel_add_content (self, content);
g_object_get (content, "media-type", &mtype, NULL);
switch (mtype)
--
1.5.6.5
More information about the telepathy-commits
mailing list