Index: Source/modules/mediasource/MediaSource.cpp |
diff --git a/Source/modules/mediasource/MediaSource.cpp b/Source/modules/mediasource/MediaSource.cpp |
index 26be2fb38d668fe5a5c7ebde6cb9fc1c305c7bae..7ab4f093d4a9393e66d6e9183c120e45f4750998 100644 |
--- a/Source/modules/mediasource/MediaSource.cpp |
+++ b/Source/modules/mediasource/MediaSource.cpp |
@@ -48,11 +48,11 @@ using blink::WebSourceBuffer; |
namespace WebCore { |
-PassRefPtrWillBeRawPtr<MediaSource> MediaSource::create(ExecutionContext* context) |
+MediaSource* MediaSource::create(ExecutionContext* context) |
{ |
- RefPtrWillBeRawPtr<MediaSource> mediaSource(adoptRefWillBeRefCountedGarbageCollected(new MediaSource(context))); |
+ MediaSource* mediaSource(adoptRefCountedGarbageCollected(new MediaSource(context))); |
mediaSource->suspendIfNeeded(); |
- return mediaSource.release(); |
+ return mediaSource; |
} |
MediaSource::MediaSource(ExecutionContext* context) |
@@ -108,12 +108,12 @@ SourceBuffer* MediaSource::addSourceBuffer(const String& type, ExceptionState& e |
return 0; |
} |
- RefPtrWillBeRawPtr<SourceBuffer> buffer = SourceBuffer::create(webSourceBuffer.release(), this, asyncEventQueue()); |
+ SourceBuffer* buffer = SourceBuffer::create(webSourceBuffer.release(), this, asyncEventQueue()); |
// 6. Add the new object to sourceBuffers and fire a addsourcebuffer on that object. |
m_sourceBuffers->add(buffer); |
m_activeSourceBuffers->add(buffer); |
// 7. Return the new object to the caller. |
- return buffer.get(); |
+ return buffer; |
} |
void MediaSource::removeSourceBuffer(SourceBuffer* buffer, ExceptionState& exceptionState) |