From: Arun Raghavan Date: Fri, 15 Dec 2023 20:19:35 +0000 (-0500) Subject: rtp: Fix incorrect RTP channel order lookup by name X-Git-Tag: 1.22.8~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0558cf8d4ce21eb5ebdfe959cfec27eb4aa3ce5;p=platform%2Fupstream%2Fgstreamer.git rtp: Fix incorrect RTP channel order lookup by name The g_ascii_strcasecmp() logic is inverted, since it returns 0 on equality. Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c index 9921293..d0694cb 100644 --- a/subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c +++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c @@ -250,7 +250,7 @@ gst_rtp_channels_get_by_order (gint channels, const gchar * order) } /* compare names */ - if (g_ascii_strcasecmp (channel_orders[i].name, order)) { + if (!g_ascii_strcasecmp (channel_orders[i].name, order)) { res = &channel_orders[i]; break; }