rtp: Fix incorrect RTP channel order lookup by name

The g_ascii_strcasecmp() logic is inverted, since it returns 0 on equality.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5817>
This commit is contained in:
Arun Raghavan 2023-12-15 15:19:35 -05:00 committed by Tim-Philipp Müller
parent 912f859148
commit a0558cf8d4

View file

@ -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;
}