[GTK] Fix codec name in OWR ASSERT
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Apr 2017 14:13:26 +0000 (14:13 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Apr 2017 14:13:26 +0000 (14:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=170600

Patch by Xan Lopez <xlopez@igalia.com> on 2017-04-07
Reviewed by Carlos Garcia Campos.

* platform/mediastream/openwebrtc/MediaEndpointOwr.cpp:
(WebCore::MediaEndpointOwr::prepareMediaSession): uppercase the
codec name we are looking for, that's how they appear in the
vector.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215093 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/openwebrtc/MediaEndpointOwr.cpp

index 30bf04c..e0d43b1 100644 (file)
@@ -1,3 +1,15 @@
+2017-04-07  Xan Lopez  <xlopez@igalia.com>
+
+        [GTK] Fix codec name in OWR ASSERT
+        https://bugs.webkit.org/show_bug.cgi?id=170600
+
+        Reviewed by Carlos Garcia Campos.
+
+        * platform/mediastream/openwebrtc/MediaEndpointOwr.cpp:
+        (WebCore::MediaEndpointOwr::prepareMediaSession): uppercase the
+        codec name we are looking for, that's how they appear in the
+        vector.
+
 2017-04-07  Per Arne Vollan  <pvollan@apple.com>
 
         Add hasVideo property to WebAVPlayerController.
index 8843cb5..615ec9e 100644 (file)
@@ -520,7 +520,7 @@ void MediaEndpointOwr::prepareMediaSession(OwrMediaSession* mediaSession, PeerMe
 
         auto* rtxPayload = findRtxPayload(mediaDescription->payloads, payload.type);
 
-        ASSERT_WITH_MESSAGE(codecTypes.find(payload.encodingName) != notFound, "Unable to find codec: %s", payload.encodingName.utf8().data());
+        ASSERT_WITH_MESSAGE(codecTypes.find(payload.encodingName.convertToASCIIUppercase()) != notFound, "Unable to find codec: %s", payload.encodingName.utf8().data());
         OwrCodecType codecType = static_cast<OwrCodecType>(codecTypes.find(payload.encodingName.convertToASCIIUppercase()));
 
         OwrPayload* receivePayload;