diff options
author | Arun Raghavan <arun@asymptotic.io> | 2023-12-15 15:19:35 -0500 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2023-12-16 11:04:57 +0000 |
commit | a0558cf8d4ce21eb5ebdfe959cfec27eb4aa3ce5 (patch) | |
tree | 6835315dfe741f7b6c0b5e4abd2245d6f35268a8 /subprojects/gst-plugins-good | |
parent | 912f85914877a70c259c3eba94d30961247e6ef9 (diff) |
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>
Diffstat (limited to 'subprojects/gst-plugins-good')
-rw-r--r-- | subprojects/gst-plugins-good/gst/rtp/gstrtpchannels.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |