From a0558cf8d4ce21eb5ebdfe959cfec27eb4aa3ce5 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 15 Dec 2023 15:19:35 -0500 Subject: rtp: Fix incorrect RTP channel order lookup by name The g_ascii_strcasecmp() logic is inverted, since it returns 0 on equality. Part-of: --- subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subprojects/gst-plugins-good') diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c index 9921293fd4..d0694cb821 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; } -- cgit v1.2.3-70-g09d2