mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
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/5815>
This commit is contained in:
parent
800a83b435
commit
ee903a5afd
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ gst_rtp_channels_get_by_order (gint channels, const gchar * order)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compare names */
|
/* compare names */
|
||||||
if (g_ascii_strcasecmp (channel_orders[i].name, order)) {
|
if (!g_ascii_strcasecmp (channel_orders[i].name, order)) {
|
||||||
res = &channel_orders[i];
|
res = &channel_orders[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue