[farsight2/master] Add associate-on-source property to the FsStreamTransmitter base class

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:54 PST 2008


---
 gst-libs/gst/farsight/fs-stream-transmitter.c |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.c b/gst-libs/gst/farsight/fs-stream-transmitter.c
index 021a2e9..40debd0 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.c
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.c
@@ -64,7 +64,8 @@ enum
 {
   PROP_0,
   PROP_SENDING,
-  PROP_PREFERRED_LOCAL_CANDIDATES
+  PROP_PREFERRED_LOCAL_CANDIDATES,
+  PROP_ASSOCIATE_ON_SOURCE
 };
 
 struct _FsStreamTransmitterPrivate
@@ -137,6 +138,21 @@ fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass)
         FS_TYPE_CANDIDATE_LIST,
         G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
 
+  /**
+   * FsStreamTransmitter:associate-on-source
+   *
+   * This tells the stream transmitter to associate incoming data with this
+   * based on the source without looking at the content if possible.
+   *
+   */
+
+  g_object_class_install_property (gobject_class,
+      PROP_ASSOCIATE_ON_SOURCE,
+      g_param_spec_boolean ("associate-on-source",
+        "Associate incoming data based on the source address",
+        "Whether to associate incoming data stream based on the source address",
+        TRUE,
+        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE));
 
   /**
    * FsStreamTransmitter::error:
-- 
1.5.6.5




More information about the farsight-commits mailing list