[Bug Fix] Calling m_audioComponents.remove in removeAudioComponent (MediaStreamDescri...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Sep 2013 21:32:48 +0000 (21:32 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Sep 2013 21:32:48 +0000 (21:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=121034

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-09-09
Reviewed by Eric Carlson.

No new tests needed.

* platform/mediastream/MediaStreamDescriptor.h:
(WebCore::MediaStreamDescriptor::removeAudioComponent):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/MediaStreamDescriptor.h

index bb704f1f04e0ed7c3aeb80c8ab2b4f9f9fb1c56d..b0b46ec66029a3efd63fc845a940271ae98ebae7 100644 (file)
@@ -1,3 +1,15 @@
+2013-09-09  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
+
+        [Bug Fix] Calling m_audioComponents.remove in removeAudioComponent (MediaStreamDescriptor)
+        https://bugs.webkit.org/show_bug.cgi?id=121034
+
+        Reviewed by Eric Carlson.
+
+        No new tests needed.
+
+        * platform/mediastream/MediaStreamDescriptor.h:
+        (WebCore::MediaStreamDescriptor::removeAudioComponent):
+
 2013-09-09  Anders Carlsson  <andersca@apple.com>
 
         Stop using WTF type traits in WebCore
index 96524a064ec52f8efaf2ce902155b7465233e575..f3b5a7c930f7dd3e8d067cebbeb2a39f20bdf8ac 100644 (file)
@@ -77,9 +77,9 @@ public:
     void addAudioComponent(PassRefPtr<MediaStreamComponent> component) { m_audioComponents.append(component); }
     void removeAudioComponent(MediaStreamComponent* component)
     {
-        size_t pos = m_videoComponents.find(component);
+        size_t pos = m_audioComponents.find(component);
         if (pos != notFound)
-            m_videoComponents.remove(pos);
+            m_audioComponents.remove(pos);
     }
 
     void addRemoteTrack(MediaStreamComponent* component)