| Index: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| index f03a996183f450ece8d3b3a900a4892afde9c4bf..c24343e2cb9f5cb605ef0ecf9e901c37fad2be22 100644
|
| --- a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| +++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| @@ -34,9 +34,9 @@
|
|
|
| namespace blink {
|
|
|
| -PassRefPtr<MediaStreamSource> MediaStreamSource::create(const String& id, Type type, const String& name, bool remote, bool readonly, ReadyState readyState, bool requiresConsumer)
|
| +MediaStreamSource* MediaStreamSource::create(const String& id, Type type, const String& name, bool remote, bool readonly, ReadyState readyState, bool requiresConsumer)
|
| {
|
| - return adoptRef(new MediaStreamSource(id, type, name, remote, readonly, readyState, requiresConsumer));
|
| + return new MediaStreamSource(id, type, name, remote, readonly, readyState, requiresConsumer);
|
| }
|
|
|
| MediaStreamSource::MediaStreamSource(const String& id, Type type, const String& name, bool remote, bool readonly, ReadyState readyState, bool requiresConsumer)
|
| @@ -54,7 +54,7 @@ void MediaStreamSource::setReadyState(ReadyState readyState)
|
| {
|
| if (m_readyState != ReadyStateEnded && m_readyState != readyState) {
|
| m_readyState = readyState;
|
| - for (Vector<Observer*>::iterator i = m_observers.begin(); i != m_observers.end(); ++i)
|
| + for (auto i = m_observers.begin(); i != m_observers.end(); ++i)
|
| (*i)->sourceChangedState();
|
| }
|
| }
|
| @@ -105,4 +105,10 @@ void MediaStreamSource::consumeAudio(AudioBus* bus, size_t numberOfFrames)
|
| (*it)->consumeAudio(bus, numberOfFrames);
|
| }
|
|
|
| +DEFINE_TRACE(MediaStreamSource)
|
| +{
|
| + visitor->trace(m_observers);
|
| + visitor->trace(m_audioConsumers);
|
| +}
|
| +
|
| } // namespace blink
|
|
|