[telepathy-gabble/master] Don't prematurely clear remote codec list
Will Thompson
will.thompson at collabora.co.uk
Thu Apr 30 11:22:43 PDT 2009
Clearing remote_codecs after emitting SetRemoteCodecs defeated the check
in new_remote_codecs_cb checking whether the new codes are an update or
not (they always appeared not to be).
---
src/media-stream.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/media-stream.c b/src/media-stream.c
index adeb921..0e7dbe0 100644
--- a/src/media-stream.c
+++ b/src/media-stream.c
@@ -1394,8 +1394,6 @@ push_remote_codecs (GabbleMediaStream *stream)
{
GabbleMediaStreamPrivate *priv;
GPtrArray *codecs;
- GType codec_list_type =
- TP_ARRAY_TYPE_MEDIA_STREAM_HANDLER_CODEC_LIST;
g_assert (GABBLE_IS_MEDIA_STREAM (stream));
@@ -1412,9 +1410,6 @@ push_remote_codecs (GabbleMediaStream *stream)
codecs->len);
tp_svc_media_stream_handler_emit_set_remote_codecs (stream, codecs);
-
- g_value_take_boxed (&priv->remote_codecs,
- dbus_g_type_specialized_construct (codec_list_type));
}
static void
--
1.5.6.5
More information about the telepathy-commits
mailing list