Changeset 152540 in webkit


Ignore:
Timestamp:
Jul 10, 2013 11:42:39 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Fix a bug in MediaStreamDescriptor::removeVideoComponent
https://bugs.webkit.org/show_bug.cgi?id=118446

Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-07-10
Reviewed by Eric Carlson.

MediaStreamDescriptor::removeVideoComponent is currently trying to
remove the 'videoComponent' from the wrong vector.

  • platform/mediastream/MediaStreamDescriptor.h:

(WebCore::MediaStreamDescriptor::removeVideoComponent):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152537 r152540  
     12013-07-10  Nick Diego Yamane  <nick.yamane@openbossa.org>
     2
     3        Fix a bug in MediaStreamDescriptor::removeVideoComponent
     4        https://bugs.webkit.org/show_bug.cgi?id=118446
     5
     6        Reviewed by Eric Carlson.
     7
     8        MediaStreamDescriptor::removeVideoComponent is currently trying to
     9        remove the 'videoComponent' from the wrong vector.
     10
     11        * platform/mediastream/MediaStreamDescriptor.h:
     12        (WebCore::MediaStreamDescriptor::removeVideoComponent):
     13
    1142013-07-10  Mario Sanchez Prada  <mario.prada@samsung.com>
    215
  • trunk/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h

    r144623 r152540  
    8787    void removeVideoComponent(MediaStreamComponent* component)
    8888    {
    89         size_t pos = m_audioComponents.find(component);
     89        size_t pos = m_videoComponents.find(component);
    9090        if (pos != notFound)
    91             m_audioComponents.remove(pos);
     91            m_videoComponents.remove(pos);
    9292    }
    9393
Note: See TracChangeset for help on using the changeset viewer.