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..8fea4d3f6778c7d1f2d5d107682ccf1b7e3dde36 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) |
@@ -105,4 +105,9 @@ void MediaStreamSource::consumeAudio(AudioBus* bus, size_t numberOfFrames) |
(*it)->consumeAudio(bus, numberOfFrames); |
} |
+DEFINE_TRACE(MediaStreamSource) |
+{ |
+ visitor->trace(m_audioConsumers); |
+} |
+ |
} // namespace blink |