[farsight2/master] Create an initial list of codec associations when building a session

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


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

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 55c42ae..d08c3e6 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -649,6 +649,18 @@ fs_rtp_session_constructed (GObject *object)
     return;
   }
 
+  /* Create an initial list of local codec associations */
+  self->priv->codec_associations = create_local_codec_associations (
+      self->priv->blueprints, NULL, NULL);
+
+  if (!self->priv->codec_associations)
+  {
+    self->priv->construction_error = g_error_new (FS_ERROR, FS_ERROR_INTERNAL,
+        "Unable to create initial codec associations"
+        " from the discovered codecs");
+    return;
+  }
+
   tmp = g_strdup_printf ("valve_send_%u", self->id);
   valve = gst_element_factory_make ("fsvalve", tmp);
   g_free (tmp);
-- 
1.5.6.5




More information about the farsight-commits mailing list