[farsight2/master] transmitter: Add tos (type of service) property
Olivier Crête
olivier.crete at collabora.co.uk
Wed Jul 22 13:31:44 PDT 2009
---
gst-libs/gst/farsight/fs-transmitter.c | 16 +++++++++++++++-
gst-libs/gst/farsight/fs-transmitter.h | 1 +
2 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-transmitter.c b/gst-libs/gst/farsight/fs-transmitter.c
index 69eebd3..5306887 100644
--- a/gst-libs/gst/farsight/fs-transmitter.c
+++ b/gst-libs/gst/farsight/fs-transmitter.c
@@ -62,7 +62,8 @@ enum
PROP_0,
PROP_GST_SINK,
PROP_GST_SRC,
- PROP_COMPONENTS
+ PROP_COMPONENTS,
+ PROP_TYPE_OF_SERVICE
};
/*
@@ -153,6 +154,19 @@ fs_transmitter_class_init (FsTransmitterClass *klass)
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
+ * FsTransmitter:tos:
+ *
+ * Sets the IP ToS field (and if possible the IPv6 TCLASS field
+ */
+ g_object_class_install_property (gobject_class,
+ PROP_TYPE_OF_SERVICE,
+ g_param_spec_uint ("tos",
+ "IP Type of Service",
+ "The IP Type of Service to set on sent packets",
+ 0, 255, 0,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ /**
* FsTransmitter::error:
* @self: #FsTransmitter that emitted the signal
* @errorno: The number of the error
diff --git a/gst-libs/gst/farsight/fs-transmitter.h b/gst-libs/gst/farsight/fs-transmitter.h
index 7ba8058..3483dd1 100644
--- a/gst-libs/gst/farsight/fs-transmitter.h
+++ b/gst-libs/gst/farsight/fs-transmitter.h
@@ -28,6 +28,7 @@
#include <gst/gst.h>
#include <gst/farsight/fs-participant.h>
+#include <gst/farsight/fs-session.h>
#include <gst/farsight/fs-stream-transmitter.h>
G_BEGIN_DECLS
--
1.5.6.5
More information about the farsight-commits
mailing list