[farsight2/master] Use strcmp correctly...
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:42 PST 2008
---
gst/fsrtpconference/fs-rtp-codec-negotiation.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-codec-negotiation.c b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
index 49f76ce..f6e849f 100644
--- a/gst/fsrtpconference/fs-rtp-codec-negotiation.c
+++ b/gst/fsrtpconference/fs-rtp-codec-negotiation.c
@@ -75,7 +75,7 @@ validate_codecs_configuration (FsMediaType media_type, GList *blueprints,
goto remove_this_codec;
if (codec->id >= 0 && codec->id < 128 && codec->encoding_name &&
- g_ascii_strcasecmp (codec->encoding_name, "reserve-pt"))
+ !g_ascii_strcasecmp (codec->encoding_name, "reserve-pt"))
goto accept_codec;
@@ -322,7 +322,7 @@ create_local_codec_associations (
/* If we want to disable a codec ID, we just insert a NULL in the table */
if (codec_pref->id >= 0 && codec_pref->id < 128 &&
codec_pref->encoding_name &&
- g_ascii_strcasecmp (codec_pref->encoding_name, "reserve-pt"))
+ !g_ascii_strcasecmp (codec_pref->encoding_name, "reserve-pt"))
{
CodecAssociation *ca = g_slice_new0 (CodecAssociation);
ca->codec = fs_codec_copy (codec_pref);
--
1.5.6.5
More information about the farsight-commits
mailing list