mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +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/5817>
This commit is contained in:
parent
912f859148
commit
a0558cf8d4
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 */
|
||||
if (g_ascii_strcasecmp (channel_orders[i].name, order)) {
|
||||
if (!g_ascii_strcasecmp (channel_orders[i].name, order)) {
|
||||
res = &channel_orders[i];
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue