mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1152093: Perform case-insensitive comparisons for codec types. r=jesup
This commit is contained in:
parent
6924a75d55
commit
7ea87c9027
@ -7,7 +7,9 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include "signaling/src/sdp/SdpMediaSection.h"
|
||||
#include "nsCRT.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@ -77,7 +79,7 @@ struct JsepCodecDescription {
|
||||
const SdpRtpmapAttributeList::Rtpmap& entry = rtpmap.GetEntry(fmt);
|
||||
|
||||
if (mType == remoteMsection.GetMediaType()
|
||||
&& (mName == entry.name)
|
||||
&& !nsCRT::strcasecmp(mName.c_str(), entry.name.c_str())
|
||||
&& (mClock == entry.clock)
|
||||
&& (mChannels == entry.channels)) {
|
||||
return ParametersMatch(entry.pt, remoteMsection);
|
||||
@ -710,7 +712,8 @@ struct JsepApplicationCodecDescription : public JsepCodecDescription {
|
||||
|
||||
const SdpSctpmapAttributeList::Sctpmap& entry = sctpmap.GetEntry(fmt);
|
||||
|
||||
if (mType == remoteMsection.GetMediaType() && (mName == entry.name)) {
|
||||
if (mType == remoteMsection.GetMediaType() &&
|
||||
!nsCRT::strcasecmp(mName.c_str(), entry.name.c_str())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user