[farsight2/master] Accept codec prefs with profiles

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


---
 gst/fsrtpconference/fs-rtp-codec-negotiation.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 380c64a..036b5f3 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -78,6 +78,12 @@ validate_codecs_configuration (FsMediaType media_type, GList *blueprints,
         !g_ascii_strcasecmp (codec->encoding_name, "reserve-pt"))
       goto accept_codec;
 
+    /* Accept codecs that have hardcoded profiles */
+    /* TODO: We should test if the profiles are buildable */
+    if (fs_codec_get_optional_parameter (codec, "recv_profile", NULL) &&
+        fs_codec_get_optional_parameter (codec, "send_profile", NULL))
+      goto accept_codec;
+
 
     for (blueprint_e = g_list_first (blueprints);
          blueprint_e;
-- 
1.5.6.5




More information about the farsight-commits mailing list