[farsight2/master] Don't require a send profile

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


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

diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index c2f2051..57a8799 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -284,7 +284,6 @@ validate_codecs_configuration (FsMediaType media_type, GList *blueprints,
     {
       /* Accept codecs with no blueprints if they have a valid profile */
       if (fs_codec_get_optional_parameter (codec, RECV_PROFILE_ARG, NULL) &&
-          fs_codec_get_optional_parameter (codec, SEND_PROFILE_ARG, NULL) &&
           codec->id >= 0 && codec->id < 128 &&
           codec->encoding_name && codec->clock_rate)
         goto accept_codec;
@@ -521,10 +520,8 @@ create_local_codec_associations (
 
     /* No matching blueprint, can't use this codec */
     if (!bp &&
-        !(fs_codec_get_optional_parameter (codec_pref, SEND_PROFILE_ARG,
-                NULL) &&
-            fs_codec_get_optional_parameter (codec_pref, RECV_PROFILE_ARG,
-                NULL)))
+        !fs_codec_get_optional_parameter (codec_pref, RECV_PROFILE_ARG,
+                NULL))
     {
       GST_LOG ("Could not find matching blueprint for preferred codec %s/%s",
           fs_media_type_to_string (codec_pref->media_type),
-- 
1.5.6.5




More information about the farsight-commits mailing list