[farsight2/master] Use new function to generate local codecs

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


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

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 7b63fca..3facbed 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -535,19 +535,9 @@ fs_rtp_session_get_property (GObject *object,
     case PROP_LOCAL_CODECS:
       {
         GList *local_codecs = NULL;
-        GList *item = NULL;
         FS_RTP_SESSION_LOCK (self);
-        for (item = g_list_first (self->priv->local_codec_associations);
-             item;
-             item = g_list_next (item))
-        {
-          CodecAssociation *ca = item->data;
-          if (!ca->disable && !ca->recv_only && ca->codec)
-          {
-            local_codecs = g_list_append (local_codecs,
-                fs_codec_copy (ca->codec));
-          }
-        }
+        local_codecs = codec_associations_to_codecs (
+            self->priv->local_codec_associations);
         FS_RTP_SESSION_UNLOCK (self);
         g_value_take_boxed (value, local_codecs);
         break;
-- 
1.5.6.5




More information about the farsight-commits mailing list