Changeset 157280 in webkit


Ignore:
Timestamp:
Oct 10, 2013 5:40:55 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Making the base implementation of isAudioStreamSource, in MediaStreamSource, return the correct value
https://bugs.webkit.org/show_bug.cgi?id=122612

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10
Reviewed by Jer Noble.

There is no reason for this implementation, in the base class, to always return false
if we already have the information about the type of the source.

No new tests needed.

  • Modules/webaudio/MediaStreamAudioSource.h:
  • platform/mediastream/MediaStreamSource.h:

(WebCore::MediaStreamSource::isAudioStreamSource):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157278 r157280  
     12013-10-10  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
     2
     3        Making the base implementation of isAudioStreamSource, in MediaStreamSource, return the correct value
     4        https://bugs.webkit.org/show_bug.cgi?id=122612
     5
     6        Reviewed by Jer Noble.
     7
     8        There is no reason for this implementation, in the base class, to always return false
     9        if we already have the information about the type of the source.
     10
     11        No new tests needed.
     12
     13        * Modules/webaudio/MediaStreamAudioSource.h:
     14        * platform/mediastream/MediaStreamSource.h:
     15        (WebCore::MediaStreamSource::isAudioStreamSource):
     16
    1172013-10-10  Timothy Hatcher  <timothy@apple.com>
    218
  • trunk/Source/WebCore/Modules/webaudio/MediaStreamAudioSource.h

    r157068 r157280  
    4646    ~MediaStreamAudioSource() { }
    4747
    48     virtual bool isAudioStreamSource() const { return true; }
    4948    virtual bool useIDForTrackID() const { return true; }
    5049
  • trunk/Source/WebCore/platform/mediastream/MediaStreamSource.h

    r157068 r157280  
    6666    virtual ~MediaStreamSource() { }
    6767
    68     virtual bool isAudioStreamSource() const { return false; }
     68    bool isAudioStreamSource() const { return type() == Audio; }
    6969    virtual bool useIDForTrackID() const { return false; }
    7070
Note: See TracChangeset for help on using the changeset viewer.