[farsight2/master] Implement codecs-without-config property in FsRtpSession

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


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

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index fed9f70..d6c004d 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -65,6 +65,7 @@ enum
   PROP_SINK_PAD,
   PROP_LOCAL_CODECS_CONFIG,
   PROP_CODECS,
+  PROP_CODECS_WITHOUT_CONFIG,
   PROP_CURRENT_SEND_CODEC,
   PROP_CODECS_READY,
   PROP_CONFERENCE,
@@ -285,6 +286,8 @@ fs_rtp_session_class_init (FsRtpSessionClass *klass)
   g_object_class_override_property (gobject_class,
     PROP_CODECS, "codecs");
   g_object_class_override_property (gobject_class,
+    PROP_CODECS_WITHOUT_CONFIG, "codecs-without-config");
+  g_object_class_override_property (gobject_class,
     PROP_CURRENT_SEND_CODEC, "current-send-codec");
   g_object_class_override_property (gobject_class,
     PROP_CODECS_READY, "codecs-ready");
@@ -604,6 +607,16 @@ fs_rtp_session_get_property (GObject *object,
         g_value_take_boxed (value, codecs);
       }
       break;
+    case PROP_CODECS_WITHOUT_CONFIG:
+      {
+        GList *codecs = NULL;
+        FS_RTP_SESSION_LOCK (self);
+        codecs = codec_associations_to_codecs (self->priv->codec_associations,
+            FALSE);
+        FS_RTP_SESSION_UNLOCK (self);
+        g_value_take_boxed (value, codecs);
+      }
+      break;
     case PROP_CODECS_READY:
       {
         GList *item = NULL;
-- 
1.5.6.5




More information about the farsight-commits mailing list