[farsight2/master] Set the sending property of the stream transmitter based on the requested direction of the FsStream

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


---
 gst/fsrtpconference/fs-rtp-stream.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index 97bb35c..aece829 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -294,6 +294,10 @@ fs_rtp_stream_set_property (GObject *object,
       break;
     case PROP_DIRECTION:
       self->priv->direction = g_value_get_enum (value);
+      if (self->priv->stream_transmitter) {
+        g_object_set (self->priv->stream_transmitter, "sending",
+          self->priv->direction & FS_DIRECTION_SEND, NULL);
+      }
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -313,6 +317,10 @@ fs_rtp_stream_constructed (GObject *object)
     return;
   }
 
+
+  g_object_set (self->priv->stream_transmitter, "sending",
+    self->priv->direction & FS_DIRECTION_SEND, NULL);
+
   g_signal_connect (self->priv->stream_transmitter,
     "native-candidates-prepared",
     G_CALLBACK (fs_rtp_stream_native_candidates_prepared),
-- 
1.5.6.5




More information about the farsight-commits mailing list