[telepathy-stream-engine/master] Set the ToS according to the stream type
Olivier Crête
olivier.crete at collabora.co.uk
Sat Jul 25 13:14:13 PDT 2009
---
src/tp-stream-engine.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/tp-stream-engine.c b/src/tp-stream-engine.c
index a930735..9532595 100644
--- a/src/tp-stream-engine.c
+++ b/src/tp-stream-engine.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
+#include <netinet/ip.h>
#include <telepathy-glib/dbus.h>
#include <telepathy-glib/errors.h>
@@ -790,6 +791,8 @@ channel_stream_created (TfChannel *chan G_GNUC_UNUSED,
GstIterator *iter;
GstElement *src;
+ g_object_set (stream, "tos", IPTOS_LOWDELAY, NULL);
+
audiostream = tp_stream_engine_audio_stream_new (stream,
GST_BIN (self->priv->pipeline), &error);
@@ -833,6 +836,8 @@ channel_stream_created (TfChannel *chan G_GNUC_UNUSED,
TpStreamEngineVideoStream *videostream = NULL;
GstPad *pad;
+ g_object_set (stream, "tos", IPTOS_THROUGHPUT, NULL);
+
pad = gst_element_get_request_pad (self->priv->videotee, "src%d");
videostream = tp_stream_engine_video_stream_new (stream,
--
1.5.6.5
More information about the telepathy-commits
mailing list