diff options
author | Robert McQueen <robert.mcqueen@collabora.co.uk> | 2007-05-22 17:52:03 +0000 |
---|---|---|
committer | Robert McQueen <robert.mcqueen@collabora.co.uk> | 2007-05-22 17:52:03 +0000 |
commit | 6c2be4748b8db10b408079c98f9db61a29e3fad8 (patch) | |
tree | 1eaa72007b532ef8edcf3b2b7d51fb740c783b34 | |
parent | 2bfbced2198976696d3f15745d7217f2448fd239 (diff) | |
download | telepathy-gabble-6c2be4748b8db10b408079c98f9db61a29e3fad8.tar.gz |
GabbleMediaStream: when the H263-N800 hack is enabled, discard any local codecs called H263-1998, and advertise H263-N800 and H263-1998
20070522175203-418b8-5b90f7d7859c791a0a80e38cfbe6813e7d7e69d2.gz
-rw-r--r-- | src/gabble-media-stream.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gabble-media-stream.c b/src/gabble-media-stream.c index e4d40f0d3..6e48a1e57 100644 --- a/src/gabble-media-stream.c +++ b/src/gabble-media-stream.c @@ -1772,6 +1772,26 @@ _gabble_media_stream_content_node_add_description (GabbleMediaStream *stream, 5, ¶ms, G_MAXUINT); + /* if the N800 hack mode is enabled then skip any codecs called + * H263-1998, and rebrand H263-N800 as H263-1998 */ + if (priv->h283_n800_hack) + { + if (!g_strdiff (name, "H263-1998")) + { + GMS_DEBUG_INFO (priv->session, "N800 hack enabled, skipping " + "real local H263-1998"); + g_free (name); + continue; + } + else if (!g_strdiff (name, "H263-N800")) + { + GMS_DEBUG_INFO (priv->session, "N800 hack enabled, advertising " + "local H263-N800 as H263-1998"); + g_free (name); + name = g_strdup ("H263-1998"); + } + } + /* create a sub-node called "payload-type" and fill it */ pt_node = lm_message_node_add_child (desc_node, "payload-type", NULL); |