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
+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
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)