[farsight2/master] Don't allow bidi or nodi streams

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 14 09:50:36 PDT 2009


---
 gst/fsmsnconference/fs-msn-stream.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gst/fsmsnconference/fs-msn-stream.c b/gst/fsmsnconference/fs-msn-stream.c
index 112cd13..d93cbbf 100644
--- a/gst/fsmsnconference/fs-msn-stream.c
+++ b/gst/fsmsnconference/fs-msn-stream.c
@@ -634,6 +634,12 @@ fs_msn_stream_constructed (GObject *object)
     gst_element_link_many(self->priv->media_fd_src, mimdec, ffmpegcolorspace,
         valve, NULL);
   }
+  else
+  {
+    self->priv->construction_error = g_error_new (FS_ERROR,
+        FS_ERROR_INVALID_ARGUMENTS,
+        "Direction must be sending OR receiving");
+  }
 
   GST_CALL_PARENT (G_OBJECT_CLASS, constructed, (object));
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list